Skip to content

Commit

Permalink
update testing module
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Nov 6, 2024
1 parent b7ed6af commit 50ffb4c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions coldfront/plugins/api/tests.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
from rest_framework import status
from rest_framework.test import APITestCase, APIRequestFactory
from coldfront.core.test_helpers.factories import setup_models, AllocationFactory
from rest_framework.test import APITestCase
from coldfront.core.allocation.models import Allocation
from coldfront.core.project.models import Project


class ColdfrontAPI(APITestCase):
"""Tests for the Coldfront rest API"""

fixtures = [
"coldfront/core/test_helpers/test_data/test_fixtures/ifx.json",
]

@classmethod
def setUpTestData(cls):
"""Create some test data"""
setup_models(cls)
cls.additional_allocations = [
AllocationFactory() for i in list(range(50))
]
"""Tests for the Coldfront REST API"""

def test_requires_login(self):
"""Test that the API requires authentication"""
Expand Down

0 comments on commit 50ffb4c

Please sign in to comment.