Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run project unit tests properly? #69

Open
jluttine opened this issue Feb 15, 2018 · 1 comment
Open

How to run project unit tests properly? #69

jluttine opened this issue Feb 15, 2018 · 1 comment

Comments

@jluttine
Copy link

I created a simple Salmon project. How can I run the unit tests? Running python setup.py test requires directories run/undeliverable and logs to be present and it writes something there. I would have thought that these were for actual production use, not for unit tests. Why do the unit tests mutate the state of these directories/files?

@moggers87
Copy link
Owner

If it gets written to in production, it gets written to in tests unless explicitly configured otherwise. You can put import_settings(True, boot_module='config.testing') somewhere in your test suite setup to configure Salmon not to write to those directories if you prefer.

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

No branches or pull requests

2 participants