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

cwd for running dashr tests - auto and override #948

Merged
merged 5 commits into from
Oct 7, 2019
Merged

Conversation

alexcjohnson
Copy link
Collaborator

@alexcjohnson alexcjohnson commented Oct 1, 2019

@rpkyle with any luck this will let you remove that os.chdir call in test_clientside.py.

Sets the cwd for R test apps during the subprocess.Popen call - so it won't affect any other tests. If the app was provided as a string, it tries to find the directory of the calling Python file and use that as cwd. If it was provided as a path to a file it just uses the directory of that file. Either way you can override this behavior with dashr.start_server(app, cwd='/some/path/')

optionals

  • I have added entry in the CHANGELOG.md
  • If this PR needs a follow-up in dash docs, community thread, I have mentioned the relevant URLS as follow

@rpkyle rpkyle self-requested a review October 7, 2019 14:49
Copy link
Contributor

@rpkyle rpkyle left a comment

Choose a reason for hiding this comment

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

@alexcjohnson The fix works for me; locally I can 🔪 os.chdir and successfully execute the test from within its own directory, as well as outside of it.

Copy link
Contributor

@byronz byronz left a comment

Choose a reason for hiding this comment

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

💃

@alexcjohnson alexcjohnson merged commit 5a76e8e into dev Oct 7, 2019
@alexcjohnson alexcjohnson deleted the R-test-cwd branch October 7, 2019 16:48
@Marc-Andre-Rivet Marc-Andre-Rivet added this to the Dash v1.4.0 milestone Oct 8, 2019
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 28, 2021
HammadTheOne pushed a commit that referenced this pull request Jul 23, 2021
Add disabled_days prop to datepickers
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.

4 participants