Skip to content

Commit

Permalink
Fixed FastAPI tests running when FastAPI not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorell committed Sep 1, 2023
1 parent 1b65584 commit 8af20cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollbar/test/fastapi_tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ async def read_root():

self.assertFalse(has_bare_routing(app))


@unittest.skipUnless(
FASTAPI_INSTALLED and ALLOWED_PYTHON_VERSION, 'FastAPI requires Python3.6+'
)
class UtilsVersionCompareTest(BaseTest):
def test_is_current_version_higher_or_equal(self):
# Copied from https://semver.org/#spec-item-11
Expand Down

0 comments on commit 8af20cf

Please sign in to comment.