From 1bf5467ebee59a6fc276e777befbe4498dcba2d1 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 22 Sep 2022 08:22:54 -0400 Subject: [PATCH] logged in headers is now in BaseTest --- .../integration/test_process_api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/spiffworkflow_backend/integration/test_process_api.py b/tests/spiffworkflow_backend/integration/test_process_api.py index 043f7171..cc533e1c 100644 --- a/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/tests/spiffworkflow_backend/integration/test_process_api.py @@ -1423,7 +1423,7 @@ class TestProcessApi(BaseTest): response = client.post( f"/v1.0/messages/{message_model_identifier}", content_type="application/json", - headers=logged_in_headers(user), + headers=self.logged_in_headers(user), data=json.dumps({"payload": payload}), ) assert response.status_code == 200 @@ -1433,7 +1433,7 @@ class TestProcessApi(BaseTest): response = client.post( f"/v1.0/messages/{message_model_identifier}", content_type="application/json", - headers=logged_in_headers(user), + headers=self.logged_in_headers(user), data=json.dumps({"payload": payload}), ) assert response.status_code == 200 @@ -1442,7 +1442,7 @@ class TestProcessApi(BaseTest): response = client.get( f"/v1.0/messages?process_instance_id={process_instance_id_one}", - headers=logged_in_headers(user), + headers=self.logged_in_headers(user), ) assert response.status_code == 200 assert response.json is not None @@ -1454,7 +1454,7 @@ class TestProcessApi(BaseTest): response = client.get( f"/v1.0/messages?process_instance_id={process_instance_id_two}", - headers=logged_in_headers(user), + headers=self.logged_in_headers(user), ) assert response.status_code == 200 assert response.json is not None @@ -1466,7 +1466,7 @@ class TestProcessApi(BaseTest): response = client.get( "/v1.0/messages", - headers=logged_in_headers(user), + headers=self.logged_in_headers(user), ) assert response.status_code == 200 assert response.json is not None @@ -1475,7 +1475,7 @@ class TestProcessApi(BaseTest): # def test_get_process_model(self): # # load_test_spec('random_fact') - # response = client.get('/v1.0/workflow-specification/random_fact', headers=logged_in_headers()) + # response = client.get('/v1.0/workflow-specification/random_fact', headers=self.logged_in_headers()) # assert_success(response) # json_data = json.loads(response.get_data(as_text=True)) # api_spec = WorkflowSpecInfoSchema().load(json_data)