Skip to content

Commit

Permalink
chore: updating dependencies and improving tests (#80)
Browse files Browse the repository at this point in the history
* chore: updated dev requirements to flake8 5.x

* chore: updated setup.py to include Python 3.10

* test: marking Alerts tests as flaky until GA
  • Loading branch information
alannix-lw authored Aug 17, 2022
1 parent 608d898 commit d2a4cb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
autopep8~=1.5
flake8~=3.9
flake8~=5.0
flake8-quotes~=3.2
pytest~=6.2
pytest-lazy-fixture~=0.6
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
2 changes: 1 addition & 1 deletion tests/api/v2/test_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def open_alerts_filter():
}


@pytest.mark.flaky_test
class TestAlerts(ReadEndpoint):

OBJECT_ID_NAME = "alertId"
Expand Down Expand Up @@ -57,7 +58,6 @@ def test_get_duplicate_key(self, api_object):
with tester.assertRaises(KeyError):
api_object.get(start_time=start_time, startTime=start_time, endTime=end_time)

@pytest.mark.flaky_test
@pytest.mark.parametrize("scope", OBJECT_SCOPES)
def test_get_details(self, api_object, scope):
guid = self._get_random_object(api_object, self.OBJECT_ID_NAME)
Expand Down

0 comments on commit d2a4cb2

Please sign in to comment.