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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
export PYTHONUTF8=1 # ensure proper encoding so that this script can print emojis without error

# Scheduled Device Monitoring Script for CRON
# Based on .github/workflows/daily-device-monitoring.yml
Expand Down Expand Up @@ -148,4 +149,4 @@ deactivate
log "Script completed with exit code $EXIT_CODE"

# Exit with the same code as the monitoring command
exit $EXIT_CODE
exit $EXIT_CODE
6 changes: 2 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@ def mock_config():
def temp_env_file():
"""Create temporary .env file for testing."""
with tempfile.NamedTemporaryFile(mode="w", suffix=".env", delete=False) as f:
f.write(
"""DB_HOST=test-host
f.write("""DB_HOST=test-host
DB_PORT=5432
DB_NAME=test_db
DB_USER=test_user
DB_PASSWORD=test_password
PARTICLE_ACCESS_TOKEN=test_token
CDS_API_KEY=test_cds_key
"""
)
""")
temp_path = f.name

yield temp_path
Expand Down