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

use tempfiles to not access file multiple times #302

Merged
merged 4 commits into from
Sep 2, 2022
Merged

Conversation

ChristianBeilschmidt
Copy link
Contributor

@ChristianBeilschmidt ChristianBeilschmidt commented Sep 2, 2022

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.


impl TempDataset {
pub fn fixture(name: &str) -> Self {
let path = std::path::Path::new(file!())
Copy link
Member

Choose a reason for hiding this comment

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

Is this really better than Path::new("fixtures")? The tests should run in the root directory of the project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can revert that, just copied it from fixtures!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lnicola
Copy link
Member

lnicola commented Sep 2, 2022

Can we make a test_utils or something to not duplicate that struct?

@lnicola lnicola mentioned this pull request Sep 2, 2022
2 tasks
@jdroenner
Copy link
Member

bors merge

@bors
Copy link
Contributor

bors bot commented Sep 2, 2022

Build succeeded:

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