Skip to content

Fixed tests, changed BaseDirectory to work with them#1

Merged
kothar merged 1 commit intokothar:masterfrom
the-admax:master
Nov 28, 2016
Merged

Fixed tests, changed BaseDirectory to work with them#1
kothar merged 1 commit intokothar:masterfrom
the-admax:master

Conversation

@the-admax
Copy link

@the-admax the-admax commented Nov 27, 2016

  • Changed access type for environment field of the BaseDirectory to package private to have it accessible from tests
  • Modified BaseDirectoryTest to consume fake environment variables created inside tests. Currently, both fields of Platofm and BaseDirectory are modified, but as they supposed to be assigned only once in production it shouldn't be a problem.

@kothar kothar merged commit ad762ab into kothar:master Nov 28, 2016
@kothar
Copy link
Owner

kothar commented Nov 28, 2016

Thanks! The tests will still fail on MacOS and Windows due to the hard-coded paths, so perhaps the best thing to do would be to write separate tests for each implementation of Platform.

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.

2 participants