trainline / consul-deployment-agent

Cross-platform deployment agent for Environment Manager
Other
1 stars 0 forks source link

Fix broken paths in unit tests run on Windows #45

Closed Merlin-Taylor closed 7 years ago

Merlin-Taylor commented 7 years ago

Unit tests use a hard-coded / separator in path expectations but the code uses the functions in the os.path module, which use OS-specific path separators (/ on Linux and \ on Windows).

This fix uses the os.path.join function to construct the path expectations for the unit tests so that they can run on Windows as well as Linux.