Skip to content

Commit b6f873f

Browse files
committed
Add tests to make sure client classes are set properly on test cases
1 parent 1f35978 commit b6f873f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/test_testcases.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from django_hosts.test import TestCase, HostsClient, AsyncHostsClient, SimpleTestCase, TransactionTestCase
2+
3+
4+
class TestHostsTestCase(TestCase):
5+
def test_client_class_instances(self):
6+
assert isinstance(self.client, HostsClient)
7+
assert isinstance(self.async_client, AsyncHostsClient)
8+
9+
10+
class TestSimpleHostsTestCase(SimpleTestCase):
11+
def test_client_class_instances(self):
12+
assert isinstance(self.client, HostsClient)
13+
assert isinstance(self.async_client, AsyncHostsClient)
14+
15+
16+
class TestTransactionHostsTestCase(TransactionTestCase):
17+
def test_client_class_instances(self):
18+
assert isinstance(self.client, HostsClient)
19+
assert isinstance(self.async_client, AsyncHostsClient)

0 commit comments

Comments
 (0)