Skip to content

Commit

Permalink
Remove useless environment variable
Browse files Browse the repository at this point in the history
Allow all tests again
Fix wrong model import in migration
Formatter
  • Loading branch information
monsieurswag authored and eric-intuitem committed Dec 4, 2024
1 parent ea8e76a commit 20134ac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
run: |
touch .env
echo PUBLIC_BACKEND_API_URL=http://localhost:8000/api >> .env
echo CI_TEST=1 >> .env
- name: Create backend environment variables file
working-directory: ${{ env.backend-directory }}
run: |
Expand Down Expand Up @@ -175,7 +174,6 @@ jobs:
run: |
touch .env
echo PUBLIC_BACKEND_API_URL=http://localhost:8000/api >> .env
echo CI_TEST=1 >> .env
- name: Create backend environment variables file
working-directory: ${{ env.backend-directory }}
run: |
Expand Down Expand Up @@ -211,7 +209,7 @@ jobs:
nohup poetry run python manage.py runserver --settings=${{ env.enterprise-backend-settings-module }} &
- name: Run tests with browser ${{ matrix.playwright-browser }}
working-directory: ${{ env.enterprise-frontend-build-directory }}
run: pnpm exec playwright test --project=${{ matrix.playwright-browser }} -g "user can set his password"
run: pnpm exec playwright test --project=${{ matrix.playwright-browser }}
env:
CI: true
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/startup-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
run: |
touch .env
echo PUBLIC_BACKEND_API_URL=http://localhost:8000/api >> .env
echo CI_TEST=1 >> .env
- name: Create backend environment variables file
working-directory: ${{ env.backend-directory }}
run: |
Expand Down Expand Up @@ -199,7 +198,6 @@ jobs:
run: |
touch .env
echo PUBLIC_BACKEND_API_URL=http://localhost:8000/api >> .env
echo CI_TEST=1 >> .env
- name: Create backend environment variables file
working-directory: ${{ env.backend-directory }}
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

def create_emailaddress_objects(apps, schema_editor):
try:
from allauth.account.models import EmailAddress
from iam.models import User
EmailAddress = apps.get_model("account", "EmailAddress")
User = apps.get_model("iam", "User")

for user in User.objects.all():
EmailAddress.objects.create(
Expand All @@ -21,7 +21,7 @@ def create_emailaddress_objects(apps, schema_editor):

class Migration(migrations.Migration):
dependencies = [
("iam", "0009_user_preferences"),
("iam", "0008_user_is_third_party"),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by Django 5.1.1 on 2024-11-22 01:25
# Generated by Django 5.1.1 on 2024-12-04 10:42

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("iam", "0008_user_is_third_party"),
("iam", "0009_create_allauth_emailaddress_objects"),
]

operations = [
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/lib/utils/env_constants.ts

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/routes/(authentication)/login/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { getSecureRedirect } from '$lib/utils/helpers';

import { ALLAUTH_API_URL, BASE_API_URL } from '$lib/utils/constants';
// The CI_TEST environment variable will have to be removed if the `currentLang == preferedLang` solution fix the enterprise function tests.
// import { CI_TEST } from '$lib/utils/env_constants';
import { loginSchema } from '$lib/utils/schemas';
import type { LoginRequestBody } from '$lib/utils/types';
import { fail, redirect, type Actions } from '@sveltejs/kit';
Expand Down

0 comments on commit 20134ac

Please sign in to comment.