victordomingos / Count-files

A CLI utility written in Python to help you count files, grouped by extension, in a directory. By default, it will count files recursively in current working directory and all of its subdirectories, and will display a table showing the frequency for each file extension (e.g.: .txt, .py, .html, .css) and the total number of files found.
https://no-title.victordomingos.com/projects/count-files/
MIT License
23 stars 9 forks source link

Test runner fails #82

Closed victordomingos closed 6 years ago

victordomingos commented 6 years ago

I get a traceback while running this:

$ python3.7 test_runner.py 
Traceback (most recent call last):
  File "test_runner.py", line 2, in <module>
    from tests.test_argument_parser import TestArgumentParser
ModuleNotFoundError: No module named 'tests.test_argument_parser'
NataliaBondarenko commented 6 years ago

The test works as usual. You just can not start it. The module itself is in place?

victordomingos commented 6 years ago

In another Mac, I couldn't reproduce the issue. In the computer that produces the error above, if I run it with Python 3.6, it's runs as expected. The file test_argument_parser.py is in the tests folder. It's a bit strange.

victordomingos commented 6 years ago

Tested again in with pipenv (removing old Pipfile and Pipfile.lock, that I think shouldn't be needed at this time) and all tests pass. Maybe its something with this specific machine.