Skip to content

Commit

Permalink
send project name as argument for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Nov 20, 2024
1 parent 13ca9d6 commit 7b205a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/tests/app/internal/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
def test_deployment_valid_projects():
# use approved project names
for p in Deployment.PROJ:
os.environ[Deployment.PROJECT_ENV] = p
d = Deployment()
# os.environ[Deployment.PROJECT_ENV] = p
d = Deployment(p)
assert d.project == p


def test_deployment_invalid_projects():
# try bad project names
for name in "bad", "", "\U0001f600":
os.environ[Deployment.PROJECT_ENV] = name
# os.environ[Deployment.PROJECT_ENV] = name
with pytest.raises(ValueError):
_ = Deployment()
_ = Deployment(name)


def test_deployment_env_default():
Expand Down

0 comments on commit 7b205a7

Please sign in to comment.