Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Avalara tests should be able to use credentials from env (#12825)
Filip Owczarekdf556a8fd4b2
diff --git a/saleor/plugins/avatax/tests/test_avatax.py b/saleor/plugins/avatax/tests/test_avatax.pyindex 2e6525f1a6..51680afc44 100644--- a/saleor/plugins/avatax/tests/test_avatax.py+++ b/saleor/plugins/avatax/tests/test_avatax.py@@ -4180,7 +4180,7 @@ def test_plugin_uses_configuration_from_db(settings,):settings.PLUGINS = ["saleor.plugins.avatax.plugin.AvataxPlugin"]- configuration = plugin_configuration(username="test", password="test", sandbox=True)+ configuration = plugin_configuration()manager = get_plugins_manager()monkeypatch.setattr(diff --git a/saleor/plugins/avatax/tests/test_tasks.py b/saleor/plugins/avatax/tests/test_tasks.pyindex 0fbe9bf33e..016a697c83 100644--- a/saleor/plugins/avatax/tests/test_tasks.py+++ b/saleor/plugins/avatax/tests/test_tasks.py@@ -1,3 +1,4 @@+import osfrom dataclasses import asdictfrom urllib.parse import urljoin@@ -22,8 +23,8 @@ def test_api_post_request_task_sends_request(site_settings.company_address = address_usasite_settings.save()config = AvataxConfiguration(- username_or_account="",- password_or_license="",+ username_or_account=os.environ.get("AVALARA_USERNAME", ""),+ password_or_license=os.environ.get("AVALARA_PASSWORD", ""),use_sandbox=True,from_street_address="Tęczowa 7",from_city="WROCŁAW",@@ -54,8 +55,8 @@ def test_api_post_request_task_creates_order_event(site_settings.save()config = AvataxConfiguration(- username_or_account="",- password_or_license="",+ username_or_account=os.environ.get("AVALARA_USERNAME", ""),+ password_or_license=os.environ.get("AVALARA_PASSWORD", ""),use_sandbox=True,from_street_address="Tęczowa 7",from_city="WROCŁAW",