From 53adc5c0033a97252cfb7abbeaa237aefa13e663 Mon Sep 17 00:00:00 2001 From: Alberto Geniola Date: Wed, 17 Apr 2024 22:21:10 +0200 Subject: [PATCH] Fix HTTPTEST tests --- .github/workflows/build-0.4.x.x.yml | 1 + .github/workflows/build-dev.yml | 1 + tests/test_http.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-0.4.x.x.yml b/.github/workflows/build-0.4.x.x.yml index 9b6cdb9..c9a668d 100644 --- a/.github/workflows/build-0.4.x.x.yml +++ b/.github/workflows/build-0.4.x.x.yml @@ -83,6 +83,7 @@ jobs: id: pytest env: MEROSS_EMAIL: ${{ secrets.MEROSS_EMAIL }} + MEROSS_EMAIL_MFA: ${{ secrets.MEROSS_EMAIL_MFA }} MEROSS_PASSWORD: ${{ secrets.MEROSS_PASSWORD }} run: | pip install . diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 9a5e533..d30e818 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -77,6 +77,7 @@ jobs: id: pytest env: MEROSS_EMAIL: ${{ secrets.MEROSS_EMAIL }} + MEROSS_EMAIL_MFA: ${{ secrets.MEROSS_EMAIL_MFA }} MEROSS_PASSWORD: ${{ secrets.MEROSS_PASSWORD }} run: | pip install . diff --git a/tests/test_http.py b/tests/test_http.py index e9da328..c6a72b7 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -99,7 +99,7 @@ async def test_device_listing(self): @unittest_run_loop async def test_bad_domain(self): with self.assertRaises(BadDomainException): - return await MerossHttpClient.async_from_user_password(api_base_url="iot.meross.com", email=_TEST_EMAIL, password=_TEST_PASSWORD, auto_retry_on_bad_domain=False) + return await MerossHttpClient.async_from_user_password(api_base_url="iotx-ap.meross.com", email=_TEST_EMAIL, password=_TEST_PASSWORD, auto_retry_on_bad_domain=False) @unittest_run_loop