-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: lay the groundwork for testing in Django
- Loading branch information
1 parent
f4eb6fb
commit 35163b2
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
from django.test import TestCase # noqa F401 | ||
from django.test import TestCase | ||
from django.urls import reverse | ||
from rest_framework.test import APIClient | ||
|
||
# Create your tests here. | ||
|
||
class EndpointsTestV1_1(TestCase): | ||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
# @TODO: Fix database migrations to make this test pass. | ||
def test_get_asset_should_return_empty(self): | ||
client = APIClient() | ||
response = client.get(reverse('api:asset_list_v1_1')) | ||
|
||
self.assertEqual(response.status_code, 200) |