Removed the check for active user when adding a user to an organisation

This commit is contained in:
Rebecca Law
2018-02-21 17:03:32 +00:00
parent 70f9dfc0f6
commit 69cc33f77f
2 changed files with 1 additions and 7 deletions

View File

@@ -171,9 +171,3 @@ def test_add_user_to_organisation_when_user_does_not_exist(sample_organisation):
def test_add_user_to_organisation_when_organisation_does_not_exist(sample_user):
with pytest.raises(expected_exception=SQLAlchemyError):
dao_add_user_to_organisation(organisation_id=uuid.uuid4(), user_id=sample_user.id)
def test_add_user_to_organisation_raises_exception_when_user_is_not_active(sample_organisation):
first = create_user(state='inactive')
with pytest.raises(expected_exception=SQLAlchemyError):
dao_add_user_to_organisation(organisation_id=sample_organisation.id, user_id=first.id)