Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed Dec 5, 2024
1 parent 2f223d4 commit 3d37fc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions rocketchat_API/APISections/licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ def licenses_get(self, **kwargs):
def licenses_info(self, **kwargs):
"""Retrieves a list of all registered licenses in the workspace."""
return self.call_api_get("licenses.info", kwargs=kwargs)


4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def skip_if_no_license(logged_rocket):
licenses_info = logged_rocket.licenses_info().json()
if not licenses_info.get("success"):
pytest.fail("License endpoint not available")
if "license" in licenses_info and licenses_info.get("license").get("license").get("information").get("offline"):
if "license" in licenses_info and licenses_info.get("license").get("license").get(
"information"
).get("offline"):
return
pytest.skip("No license available")
1 change: 1 addition & 0 deletions tests/test_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def test_licenses_get(logged_rocket, skip_v7):
licenses_get = logged_rocket.licenses_get().json()
assert licenses_get.get("success")


def test_licenses_info(logged_rocket):
licenses_info = logged_rocket.licenses_info().json()
assert licenses_info.get("success")

0 comments on commit 3d37fc1

Please sign in to comment.