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

Allow passing full paths to media files #32

Merged
merged 6 commits into from
Jun 14, 2019

Conversation

kerrickstaley
Copy link
Owner

@kerrickstaley kerrickstaley commented Jun 14, 2019

Allow passing full path to media files, rather than requiring media files to be in the CWD.

This change also fixes a bug in the unit tests: self.col.media.check() assumes that the media directory is the CWD, and so tests would fail or succeed based on the files in the CWD rather than what media files are actually in the package. We fix this by chdir'ing to self.col.media.dir() each time before running self.col.media.check().

@kerrickstaley kerrickstaley merged commit 802aeb4 into master Jun 14, 2019
@kerrickstaley kerrickstaley mentioned this pull request Jun 14, 2019
@kerrickstaley kerrickstaley deleted the allow-full-paths-to-media branch September 25, 2020 13:16
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.

1 participant