Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lladdy committed Dec 27, 2024
1 parent 9d54c7b commit 9f5deaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiarena/api/tests/test_bot_view_set.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from django.test import TestCase
from django.urls import reverse

from rest_framework.test import APIClient

from aiarena.core.tests.test_mixins import MatchReadyMixin


from django.urls import reverse
class BotSerializerTestCase(MatchReadyMixin, TestCase):
def test_download_bot_zip_success(self):
"""
Expand All @@ -25,10 +26,9 @@ def test_download_bot_zip_unauthorized(self):
"""
self.client = APIClient()
self.client.force_authenticate(user=self.regularUser1)
bot = self.staffUser1Bot1 # owned by someone else
bot = self.staffUser1Bot1 # owned by someone else

# URL base name for BotViewSet is api_bot, action url_path is zip
self.url = reverse("api_bot-download-zip", kwargs={"pk": bot.id})
response = self.client.get(self.url)
self.assertEqual(response.status_code, 404)

0 comments on commit 9f5deaf

Please sign in to comment.