Skip to content

Commit

Permalink
Adjust unit testing for US-GOV-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Nov 3, 2023
1 parent bf66072 commit d369587
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_cloud_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ def run_tests(self):

return error_checks

@pytest.mark.skipif(config.base_url == "https://api.laggar.gcw.crowdstrike.com",
reason="Unit testing unavailable on US-GOV-1"
)
def test_get_credentials(self):
"""Pytest harness hook"""
assert bool(falcon.get_credentials()["status_code"] in AllowedResponses) is True

@pytest.mark.skipif(config.base_url == "https://api.laggar.gcw.crowdstrike.com",
reason="Unit testing unavailable on US-GOV-1"
)
def test_remaining_code_paths(self):
"""Pytest harness hook"""
assert self.run_tests() is True
3 changes: 3 additions & 0 deletions tests/test_result_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,9 @@ def test_unnecessary_encoding_used_warning(self):
hosts.query_devices_by_filter_scroll(filter="hostname%3A%27falconpy%27")
assert _success

@pytest.mark.skipif(config.base_url == "https://api.laggar.gcw.crowdstrike.com",
reason="Unit testing unavailable on US-GOV-1"
)
@not_supported
def test_pythonic_deprecation_warnings(self):
_success = False
Expand Down

0 comments on commit d369587

Please sign in to comment.