Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
Additional check if not a git repo - check that folder contains "site…
Browse files Browse the repository at this point in the history
…-packages", meaning that the package has the mideu file.
  • Loading branch information
adelosa committed Oct 3, 2016
1 parent 4b193e5 commit c509ac5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_cli_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@ def test_get_config_filename(self):
filename = get_config_filename('mideu.yml')
self.assertTrue(os.path.exists(filename))

print("config filename={0}".format(filename))
if not os.path.isdir(".git"):
print("Checking that config from site-packages")
self.assertNotEqual(filename.find("site-packages"), -1)

if __name__ == '__main__':
unittest.main()

0 comments on commit c509ac5

Please sign in to comment.