Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 19, 2024
1 parent 154d9c0 commit b14d148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/tests/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_publish_training(self):
res = self.client.post(
f"{API_BASE}/training/publish/{training.id}/", headers=headersList
)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(res.status_code, 409)

def test_get_GpxView(self):
training = TrainingFactory(model=self.model, user=self.user)
Expand All @@ -307,8 +307,8 @@ def test_get_GpxView(self):
def test_get_workspace(self):
# get training workspace

res = self.client.get(f"{API_BASE}/workspace/", headers=headersList)
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
res = self.client.get(f"{API_BASE}/workspace/dataset_1/", headers=headersList)
self.assertEqual(res.status_code, 409)

def test_download_workspace(self):
try:
Expand Down

0 comments on commit b14d148

Please sign in to comment.