-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from mam-dev/config-merge
Refactor Configuration use and add integration test
- Loading branch information
Showing
7 changed files
with
337 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pytest | ||
|
||
from security_constraints.common import ArgumentNamespace, SeverityLevel | ||
|
||
|
||
@pytest.fixture(name="arg_namespace") | ||
def fixture_arg_namespace() -> ArgumentNamespace: | ||
return ArgumentNamespace( | ||
dump_config=False, | ||
debug=False, | ||
version=False, | ||
output=None, | ||
ignore_ids=[], | ||
config=None, | ||
min_severity=SeverityLevel.CRITICAL, | ||
) | ||
|
||
|
||
@pytest.fixture(name="github_token") | ||
def fixture_token_in_env(monkeypatch) -> str: | ||
"""Set SC_GITHUB_TOKEN environment variable and return it.""" | ||
token = "3e00409b-f017-4ecc-b7bf-f11f6e2a5693" | ||
monkeypatch.setenv("SC_GITHUB_TOKEN", token) | ||
return token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.