-
-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Description of your problem
When I run the test I get the following errors (please implement a text copy command in unit testing pane):
not run t.test_add_seq
not run t.test_replace_seq
failure p.test_base64_img_collection_error
The failure is caused by a test in a complete other file: pocs/test_base64_img.py
The pocs directory is a directory in the current working directory. In the cwd the files music_utilities.py and test_music_utilities.py reside. It seems that spyder-unittest searches for all files in all directories from the cwd.
What steps will reproduce the problem?
This is the file test_music_utilities.py
from music_utilities import MusicFiles
Test the musicfiles class
def test_add_seq():
assert MusicFiles.seq_name('d.csv', 2) == 'd_0002.csv'
def test_replace_seq():
MusicFiles.seq_name('d_3.csv', 2) == 'd_0002.csv'
It is aimed at testing the file music_utilities.py
What is the expected output? What do you see instead?
True
True
What I see instead is described in the problem description
Key versions and other information:
- Spyder version: 3.3.1
- Version of spyder-unittest plugin: 0.3.1
- Installation method for Spyder and the unittest plugin: Anaconda / pip / ... anaconda
- Python version: 3.5.6
- Testing framework used: py.test
- Testing framework version: 3.8.1
- Operating system: ubuntu 18.04