From 6ef78fd60d092082d85000f550f2f308578f3a88 Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Thu, 9 Sep 2021 12:40:42 -0700 Subject: [PATCH 1/2] Future-proof the tests --- test/test_estimates_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_estimates_api.py b/test/test_estimates_api.py index 863df5a..280e18b 100644 --- a/test/test_estimates_api.py +++ b/test/test_estimates_api.py @@ -36,7 +36,7 @@ def test_create_and_retrieve_mass_estimate(self): """ mass_g = 100 project_id = "pro_test_2b67b11a030b66e0a6dd61a56b49079a" - estimate = self.api.create_mass_estimate(mass_g=mass_g, project_id=project_id) + estimate = self.api.create_mass_estimate(mass_g=mass_g, project_id=project_id, create_order=True) self.assertTrue(estimate) self.assertEqual(estimate.data.order.mass_g, mass_g) From bc4454fdb3cdb4243a49d173dfc3f167b0081cdd Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Thu, 9 Sep 2021 12:57:28 -0700 Subject: [PATCH 2/2] lint --- test/test_estimates_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_estimates_api.py b/test/test_estimates_api.py index 280e18b..c40e664 100644 --- a/test/test_estimates_api.py +++ b/test/test_estimates_api.py @@ -36,7 +36,9 @@ def test_create_and_retrieve_mass_estimate(self): """ mass_g = 100 project_id = "pro_test_2b67b11a030b66e0a6dd61a56b49079a" - estimate = self.api.create_mass_estimate(mass_g=mass_g, project_id=project_id, create_order=True) + estimate = self.api.create_mass_estimate( + mass_g=mass_g, project_id=project_id, create_order=True + ) self.assertTrue(estimate) self.assertEqual(estimate.data.order.mass_g, mass_g)