Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
run load_seed_data before e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebgrebe committed Apr 1, 2024
1 parent 45a9f52 commit 1b60fe7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Instructions for developers on how to build and run the project, how to run test
- In main folder in separate terminal window, run ```docker-compose run --rm web bash -c "python manage.py migrate"```
to build docker container and create database tables
- Run ```docker-compose up web``` to start docker container
- Load seed data: ```docker-compose run --rm web bash -c "python manage.py load_seed_data"```
- Project will be served on ```localhost:8000```
- The email client will be served on ```localhost:1080```

Expand Down
2 changes: 1 addition & 1 deletion eahub/base/management/commands/load_seed_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ def handle(self, *args, **kwargs):
if env == DjangoEnv.LOCAL or env == DjangoEnv.E2E:
socialApp = SocialApp(provider="google")
socialApp.save()
socialApp.sites.set([Sites.objects.first()])
socialApp.sites.set([Site.objects.first()])

2 changes: 1 addition & 1 deletion eahub/tests/e2e/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class E2ETestCase(StaticLiveServerTestCase):

@classmethod
def setUpClass(cls):

call_command('load_seed_data')
cls.selenium = webdriver.Remote(
command_executor="http://selenium-hub:4444/wd/hub",
options=webdriver.ChromeOptions()
Expand Down

0 comments on commit 1b60fe7

Please sign in to comment.