Skip to content

Commit

Permalink
fix tests (lints)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jun 2, 2020
1 parent f6ef5da commit cf89c67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ def _search_and_merge(self, user_id, cis_profile_object):
)
):
logger.info(
"Will not merge user as there were no difference found with the vault instance of the user".format(
extra={"user_id": user_id}
)
"Will not merge user as there were no difference found with the vault instance of the user",
extra={"user_id": user_id},
)
return None
else:
Expand Down
6 changes: 1 addition & 5 deletions python-modules/cis_profile/cis_profile/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ def main():
@click.command()
@click.option("--seed", "-s", type=int, help="seed to create random profile", default=None)
@click.option(
"--config",
"-c",
type=str,
multiple=True,
help="config options [{}]".format(", ".join(CONFIG_OPTIONS), default="default"),
"--config", "-c", type=str, multiple=True, help="config options [{}]".format(", ".join(CONFIG_OPTIONS)),
)
def create(seed, config):
"""Create single IAM profile v2 object."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_returning_query_by_any_staff_only_active_true(self, fake_jwks):
token = f.generate_bearer_with_scope("read:fullprofile display:all search:all")
logger.info("Attempting to query all staff.")
result = self.app.get(
f"/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=True",
"/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=True",
headers={"Authorization": "Bearer " + token},
follow_redirects=True,
)
Expand Down Expand Up @@ -111,7 +111,7 @@ def test_returning_query_by_any_staff_only_active_true_with_full_profiles(self,
token = f.generate_bearer_with_scope("read:fullprofile display:all search:all")
logger.info("Attempting to query all staff.")
result = self.app.get(
f"/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=True&fullProfiles=True",
"/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=True&fullProfiles=True",
headers={"Authorization": "Bearer " + token},
follow_redirects=True,
)
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_returning_query_by_any_find_ldap_members(self, fake_jwks):
token = f.generate_bearer_with_scope("read:fullprofile display:all search:all")
logger.info("Attempting to query all staff.")
result = self.app.get(
f"/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=True&fullProfiles=True",
"/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=True&fullProfiles=True",
headers={"Authorization": "Bearer " + token},
follow_redirects=True,
)
Expand Down

0 comments on commit cf89c67

Please sign in to comment.