-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Rule framework now use RuleExplorer a MightstoneHttpClient
Removed dependency to Requests, and is async ready.
- Loading branch information
Showing
4 changed files
with
123 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[pytest] | ||
markers = | ||
skip_remote_api:Skips remote api calls on CI | ||
skip_remote_api_2:Skips remote api calls on CI (same thing but i don’t know how to relative import) |
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,13 @@ | ||
import os | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def skip_remote_api_2(): | ||
if "CI" in os.environ: | ||
pytest.skip("Remote API tests are disable in CI") | ||
elif os.environ.get("REMOTE_API_TEST", "1") != "1": | ||
pytest.skip("Remote API tests are disable by explicit REMOTE_API_TEST != 1") | ||
else: | ||
yield |
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