Update application environments

This commit is contained in:
George Drummond
2019-04-22 10:37:03 -04:00
parent 30018a061b
commit 079672c818
12 changed files with 159 additions and 35 deletions

View File

@@ -187,3 +187,10 @@ def test_delete_environment(session):
assert env_role.deleted
# flushed the change
assert not session.dirty
def test_update_environment():
environment = EnvironmentFactory.create()
assert environment.name is not "name 2"
Environments.update(environment, name="name 2")
assert environment.name == "name 2"