Move test_get_components_empty to its place
This commit is contained in:
parent
eb3a6606b0
commit
2363bb7124
|
@ -121,11 +121,6 @@ class TestApp(base.TestCase):
|
|||
res = self.client.delete('/namespaces/3')
|
||||
self.assertEqual(res.status_code, 404)
|
||||
|
||||
def test_get_components_empty(self):
|
||||
res = self.client.get('/components')
|
||||
self.assertEqual(res.status_code, 200)
|
||||
self.assertEqual(res.json, [])
|
||||
|
||||
@property
|
||||
def _component_json(self):
|
||||
return {
|
||||
|
@ -146,6 +141,11 @@ class TestApp(base.TestCase):
|
|||
}],
|
||||
}
|
||||
|
||||
def test_get_components_empty(self):
|
||||
res = self.client.get('/components')
|
||||
self.assertEqual(res.status_code, 200)
|
||||
self.assertEqual(res.json, [])
|
||||
|
||||
def test_get_components(self):
|
||||
self._fixture()
|
||||
res = self.client.get('/components')
|
||||
|
|
Loading…
Reference in New Issue