Skip to content

First configuration for tests - #11

Merged
cuducos merged 3 commits into
cuducos:masterfrom
anaschwendler:setup-test-environment
Apr 3, 2020
Merged

cuducos merged 3 commits into
cuducos:masterfrom
anaschwendler:setup-test-environment

Conversation

@anaschwendler

Copy link
Copy Markdown
Contributor

Tries to solve #3.

What I did?
Using as the base this project I've created two files to serve as set up for the test environment.

setup.cfg to set up pytest django settings file.

tests/settings.py with a basic setup to serve as settings file for the test environment.

What is happening now?
I don't do python in a long time 😅 but it seems to throw and error related to __init__.py
image

@cuducos cuducos left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great progress ✨ With that we tick the 1st checkbox of #3 💜

Regarding the error message, I think it's a fair message: maybe the DummyUser expects public_apps and pulic_models to be passed as keyword arguments, not simple arguments.

Comment thread tests/settings.py Resolved
Comment thread tests/settings.py Resolved
Comment thread tests/settings.py Resolved
@anaschwendler
anaschwendler requested a review from cuducos April 2, 2020 13:29
@cuducos cuducos mentioned this pull request Apr 2, 2020
@anaschwendler
anaschwendler marked this pull request as ready for review April 2, 2020 19:17
@anaschwendler anaschwendler changed the title [WIP] First configuration for tests First configuration for tests Apr 2, 2020
@cuducos
cuducos merged commit 05d40e1 into cuducos:master Apr 3, 2020
@cuducos cuducos mentioned this pull request Apr 3, 2020
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants