-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from kelle/fix-more-tests
Fix one tests and warnings
- Loading branch information
Showing
6 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
"""A suite of tests for the helpers.py module""" | ||
import os | ||
from pkg_resources import resource_filename | ||
import importlib_resources | ||
|
||
from sedkit import helpers as help | ||
|
||
|
||
def test_process_dmestar(): | ||
"""Test the process_dmestar function""" | ||
# Process DMEStar files | ||
dir = resource_filename('sedkit', 'data/models/evolutionary/DMESTAR/') | ||
dir = importlib_resources.files('sedkit')/ 'data/models/evolutionary/DMESTAR/' | ||
help.process_dmestar(dir=dir, filename='dmestar_test.txt') | ||
|
||
# Delete temporary file | ||
path = resource_filename('sedkit', 'data/models/evolutionary/dmestar_test.txt') | ||
os.system('rm {}'.format(path)) | ||
temp_file = importlib_resources.files('sedkit')/ 'data/models/evolutionary/dmestar_test.txt' | ||
os.remove(temp_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters