Test files must have unique names
This commit is contained in:
15
tests/routes/workspaces/test_workspaces_index.py
Normal file
15
tests/routes/workspaces/test_workspaces_index.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from flask import url_for
|
||||
|
||||
from tests.factories import WorkspaceFactory
|
||||
|
||||
|
||||
def test_update_workspace_name(client, user_session):
|
||||
workspace = WorkspaceFactory.create()
|
||||
user_session(workspace.owner)
|
||||
response = client.post(
|
||||
url_for("workspaces.edit_workspace", workspace_id=workspace.id),
|
||||
data={"name": "a cool new name"},
|
||||
follow_redirects=True,
|
||||
)
|
||||
assert response.status_code == 200
|
||||
assert workspace.name == "a cool new name"
|
Reference in New Issue
Block a user