Skip to content

Commit

Permalink
update organizaton
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Nov 20, 2024
1 parent 719d0ff commit 5b40d0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/app/user/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_get_user_doesnt_return_inactive_services_and_orgs(
sample_user = sample_service.users[0]
sample_user.organizations = [sample_organization]

with db.session.no_flush:
with db.session.no_autoflush:
json_resp = admin_request.get("user.get_user", user_id=sample_user.id)

fetched = json_resp["data"]
Expand All @@ -114,7 +114,7 @@ def test_post_user(admin_request, notify_db_session):
"permissions": {},
"auth_type": AuthType.EMAIL,
}
with db.session.no_flush:
with db.session.no_autoflush:
json_resp = admin_request.post(
"user.create_user", _data=data, _expected_status=201
)
Expand All @@ -136,7 +136,7 @@ def test_post_user_without_auth_type(admin_request, notify_db_session):
"permissions": {},
}

with db.session.no_flush:
with db.session.no_autoflush:
json_resp = admin_request.post(
"user.create_user", _data=data, _expected_status=201
)
Expand All @@ -160,7 +160,7 @@ def test_post_user_missing_attribute_email(admin_request, notify_db_session):
"failed_login_count": 0,
"permissions": {},
}
with db.session.no_flush:
with db.session.no_autoflush:
json_resp = admin_request.post(
"user.create_user", _data=data, _expected_status=400
)
Expand Down

0 comments on commit 5b40d0e

Please sign in to comment.