Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinkoz committed Jul 1, 2023
1 parent 4ad6cf0 commit 4a58beb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dpgs_sandbox/tests/test_test_client.py
Expand Up @@ -98,29 +98,29 @@ class StaticTenantClientTestCase(TestCase):

@classmethod
def setUpClass(cls):
tenant = SchemaDescriptor.create(schema_name="tenant1", domain_url="everyone.localhost")
tenant = SchemaDescriptor.create(schema_name="blog", domain_url="blog.localhost")
cls.tenant_client = TenantClient(tenant)

@classmethod
def tearDownClass(cls):
pass

def test_get(self):
response = self.tenant_client.get("/ping/")
response = self.tenant_client.get("/entries/")
self.assertEqual(response.status_code, 200)

def test_post(self):
response = self.tenant_client.post("/ping/")
response = self.tenant_client.post("/entries/")
self.assertEqual(response.status_code, 200)

def test_put(self):
response = self.tenant_client.put("/ping/")
response = self.tenant_client.put("/entries/")
self.assertEqual(response.status_code, 200)

def test_patch(self):
response = self.tenant_client.patch("/ping/")
response = self.tenant_client.patch("/entries/")
self.assertEqual(response.status_code, 200)

def test_delete(self):
response = self.tenant_client.delete("/ping/")
response = self.tenant_client.delete("/entries/")
self.assertEqual(response.status_code, 200)

0 comments on commit 4a58beb

Please sign in to comment.