Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +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


# deployment files
app.yaml
2 changes: 1 addition & 1 deletion core/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 7 additions & 7 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file.
Loading