diff options
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 36e786f35..0d6753119 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -4798,3 +4798,15 @@ class ApiTest(OperationInitTest, APITestCase): # POV: local # test query limitation pass + + def test_sheet_display(self): + # POV: external + api_search_model = self.create_api_search_model() + url = reverse("api-get-operation", args=[self.operations[0].pk]) + data = {"submited": 1, "search_vector": "28"} + response = self.client.get( + url, format="json", HTTP_AUTHORIZATION=self.auth_token, data=data + ) + self.assertEqual(response.status_code, 200) + j = json.loads(response.content.decode()) + print(j) |