Skip to content

Commit

Permalink
Add test about view
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Feb 22, 2024
1 parent 86d8264 commit 3430873
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ DJANGO_SETTINGS_MODULE=config.settings.test
DJANGO_SECRET_KEY=t3st-s3cr3t#-!k3y
ETH_HASH_BACKEND=pysha3

DATABASE_URL=psql://postgres:postgres@db:5432/postgres
DATABASE_URL=psql://postgres:postgres@localhost:5432/postgres
# Only required for testing
ETHEREUM_MAINNET_NODE=https://ethereum.publicnode.com
3 changes: 0 additions & 3 deletions safe_locking_service/locking_events/tests.py

This file was deleted.

Empty file.
11 changes: 11 additions & 0 deletions safe_locking_service/locking_events/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.test import TestCase
from django.urls import reverse

from rest_framework import status


class TestQueueService(TestCase):
def test_about_view(self):
url = reverse("v1:locking_events:about")
response = self.client.get(url, format="json")
self.assertEqual(response.status_code, status.HTTP_200_OK)

0 comments on commit 3430873

Please sign in to comment.