Skip to content

Commit e1cbbce

Browse files
committed
Add simple template test
Signed-off-by: Nir Izraeli <[email protected]>
1 parent eaf65b4 commit e1cbbce

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: tests/server/collab/test_all.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111

1212
@pytest.fixture
13-
def api_client(db):
13+
def api_client():
1414
return test.APIClient()
1515

1616

1717
@pytest.fixture
18-
def admin_api_client(db, admin_user):
18+
def admin_api_client(admin_user):
1919
client = test.APIClient()
2020
client.force_authenticate(user=admin_user)
2121
return client
@@ -176,3 +176,8 @@ def test_model_creation(api_client, admin_api_client, admin_user, model_name):
176176
response = api_client.get('/collab/{}/'.format(model_name),
177177
HTTP_ACCEPT="application/json")
178178
assert_eq(response.json(), projects_created)
179+
180+
181+
def test_template(admin_client):
182+
response = admin_client.get('/accounts/profile/')
183+
assert_response(response, status.HTTP_200_OK)

0 commit comments

Comments
 (0)