Open rafwiewiora opened 8 years ago
Can you add a corresponding test to catch the original problem this was designed to solve?
To get the travis tests to run, you'll have to change this line from Miniconda-latest-Linux
to Miniconda2-latest-Linux
.
Nevermind, I fixed this in #75
re test: there was one already (https://github.com/choderalab/ensembler/blob/master/ensembler/tests/test_initproject.py#L101) but that uses the absolute path, hence works.
If I want to test using a relative path - do I have guarantee that the current folder will always be the folder in which the test script sits? Not sure how Travis works with that kind of thing.
If I want to test using a relative path - do I have guarantee that the current folder will always be the folder in which the test script sits? Not sure how Travis works with that kind of thing.
I would write a test that does the following:
tempfile.mkdtemp()
structure_paths = [get_installed_resource_filename(os.path.join('tests', 'resources'))]
Thanks! Test added.
We're still working on fixing tests---sorry! See #80
No problem!
Fixes https://github.com/choderalab/ensembler/issues/73
(that's adding a trailing new line at the end in the diff)