From 37796485d44c5def08eebdf7e07b5fe9683d4409 Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 29 Oct 2025 10:46:29 -0600 Subject: [PATCH 1/5] fix: remove tzset for OS compatability --- .gitignore | 1 + tests/__init__.py | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 926445422..b9f994dac 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ transfers/data/assets* transfers/transfer*.log transfer*.log tests/features/*.feature +tests/data/nma_csv_cache/*.csv # deployment files app.yaml \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py index e538b996a..c6814a907 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -13,21 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. # =============================================================================== -import os - # Load .env file BEFORE importing anything else # Use override=True to override conflicting shell environment variables from dotenv import load_dotenv load_dotenv(override=True) -# Set timezone to UTC for consistent datetime handling in tests -os.environ["TZ"] = "UTC" +# this should not be needed since all Pydantic serializes all datetimes as UTC +# furthermore, tzset is not supported on Windows, so this breaks cross-platform compatibility +# # Set timezone to UTC for consistent datetime handling in tests +# os.environ["TZ"] = "UTC" -# Also set time.tzset() to apply the timezone change -import time +# # Also set time.tzset() to apply the timezone change +# import time -time.tzset() +# time.tzset() from transfers.transfer import erase_and_initalize from fastapi.testclient import TestClient From 6175d8be8f94d2b7bffc3132dd28ecfca6d489db Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 29 Oct 2025 10:51:37 -0600 Subject: [PATCH 2/5] refactor: update .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b9f994dac..ad775044f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,8 @@ transfers/data/assets* transfers/transfer*.log transfer*.log tests/features/*.feature -tests/data/nma_csv_cache/*.csv +tests/data/nma_csv_cache/* +!tests/data/nma_csv_cache/.gitkeep # deployment files app.yaml \ No newline at end of file From 75d3a3ce857475eaab6c9986567114200c41b23f Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 29 Oct 2025 10:53:00 -0600 Subject: [PATCH 3/5] refactor: fix .gitignore --- .gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ad775044f..9f6d77071 100644 --- a/.gitignore +++ b/.gitignore @@ -26,9 +26,10 @@ gcs_credentials.json transfers/data/assets* transfers/transfer*.log transfer*.log +transfers/data/nma_csv_cache/* +!transfers/data/nma_csv_cache/.gitkeep tests/features/*.feature -tests/data/nma_csv_cache/* -!tests/data/nma_csv_cache/.gitkeep + # deployment files app.yaml \ No newline at end of file From 3aa5ec8bacd9e05cd99608c64d9f9cded2c1c66d Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 29 Oct 2025 10:54:04 -0600 Subject: [PATCH 4/5] feat: add nma_csv_cache directory --- transfers/data/nma_csv_cache/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 transfers/data/nma_csv_cache/.gitkeep diff --git a/transfers/data/nma_csv_cache/.gitkeep b/transfers/data/nma_csv_cache/.gitkeep new file mode 100644 index 000000000..e69de29bb From 87ff97c7163db9f2ecf1571366928626b40b94ab Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 29 Oct 2025 10:55:41 -0600 Subject: [PATCH 5/5] fix: default authentik disable to 0 --- core/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/permissions.py b/core/permissions.py index b3f62b714..99cf0d6bb 100644 --- a/core/permissions.py +++ b/core/permissions.py @@ -85,7 +85,7 @@ def _authenicated( If `optional` is True, it should allow unauthenticated access. """ - if int(os.environ.get("AUTHENTIK_DISABLE_AUTHENTICATION", 1)): + if int(os.environ.get("AUTHENTIK_DISABLE_AUTHENTICATION", 0)): if settings.mode == "production": raise HTTPException( status_code=status.HTTP_424_FAILED_DEPENDENCY,