8000 Config file safe tests by theengineear · Pull Request #261 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

Config file safe tests #261

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

Merged
merged 5 commits into from
Jul 16, 2015
Merged

Config file safe tests #261

merged 5 commits into from
Jul 16, 2015

Conversation

theengineear
Copy link
Contributor

Add some protective isolation of session and file config/credentials between unit tests. This only works when you inherit from the new TestCase (PlotlyTestCase)

Otherwise, it’s pretty easy to munge them if tests change them!
@theengineear
Copy link
Contributor Author

@aneda @chriddyp @cldougl , I'd like to merge this into Neda's branch so that we can be safer about credentials/config files during tests. Right now, they're not isolated. Therefore, a change to these files in one test can cause another one to fail 😞. That's the opposite of unit tests! I think this should fix it.

To use this, just inherit from PlotlyTestCase. It lives in plotly.tests.utils

About to add session stashing, so it’s helpful to specify which
credentials/config we’re stashing/restoring.
@chriddyp
Copy link
Member

once tests pass 💃

@theengineear
Copy link
Contributor Author

@chriddyp , this is failing because master needs to be merged into it, i wrote up a procedure for @aneda here. This is merging into her branch, not master, so I think it will cause fewer conflicts for her to merge this first and then merge master into the config_plot_option branch.

Neda, feel free to merge this into your branch.

aneda pushed a commit that referenced this pull request Jul 16, 2015
@aneda aneda merged commit 6f2eb8a into config_plot_option Jul 16, 2015
@theengineear theengineear deleted the config-file-safe-tests branch September 30, 2015 06:09
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.

3 participants
0