Skip to content

Commit

Permalink
fix(lint): Fix linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Divij Sharma <[email protected]>
  • Loading branch information
dvjsharma committed Sep 4, 2024
1 parent d9134ae commit 0be6251
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:

services:
mysql:
image: mysql:8.0
image: mysql:9.0
env:
MYSQL_DATABASE: spapi
MYSQL_USER: root
MYSQL_PASSWORD: ""
MYSQL_ROOT_PASSWORD: ""
MYSQL_ROOT_PASSWORD: "password"
ports:
- 3306:3306
options: --health-cmd "mysqladmin ping --silent" --health-interval 10s --health-timeout 5s --health-retries 3
Expand Down
4 changes: 2 additions & 2 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
ROOT_URLCONF = "config.urls"

# Get the CORS allowed origins from the environment variable
CORS_ALLOWED_ORIGINS = os.environ.get('CORS_ALLOWED_ORIGINS', '').split(',')
CORS_ALLOWED_ORIGINS = os.environ.get('CORS_ALLOWED_ORIGINS', 'http://localhost:3000').split(',')

# Template settings
TEMPLATES = [
Expand Down Expand Up @@ -95,7 +95,7 @@
"ENGINE": os.getenv("DB_ENGINE", "django.db.backends.mysql"),
"NAME": os.getenv("DB_NAME", "spapi"),
"USER": os.getenv("DB_USER", "root"),
"PASSWORD": os.getenv("DB_PASSWORD", ""),
"PASSWORD": os.getenv("DB_PASSWORD", "password"),
"HOST": os.getenv("DB_HOST", "127.0.0.1"),
"PORT": os.getenv("DB_PORT", "3306"),
}
Expand Down
2 changes: 1 addition & 1 deletion core/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_user_deactivation(api_client, admin_user):
'first_name': 'Test',
'last_name': 'User'
}
response = api_client.post(url, data, format='json')
api_client.post(url, data, format='json')
user = User.objects.get(username='testuser2')
assert user.is_deactivated is False
assert user.is_active is False
Expand Down

0 comments on commit 0be6251

Please sign in to comment.