#89 tests/test_cli_ux.py::TestMissingMetadata::test_missing_metadata_handling errors out if the cache dir doesn't exist
Closed: RESOLVED Opened by nphilipp.

(fedmod) nils@gibraltar:~/src/modularity/fedmod (master)> pytest -v tests/test_cli_ux.py::TestMissingMetadata::test_missing_metadata_handling
============================= test session starts ==============================
platform linux -- Python 3.7.0, pytest-3.8.1, py-1.6.0, pluggy-0.7.1 -- /home/nils/.virtualenvs/fedmod/bin/python3
cachedir: .pytest_cache
rootdir: /home/nils/src/modularity/fedmod, inifile:
collected 1 item                                                               
tests/test_cli_ux.py::TestMissingMetadata::test_missing_metadata_handling ERROR [100%]
==================================== ERRORS ====================================
_____ ERROR at setup of TestMissingMetadata.test_missing_metadata_handling _____
self = <tests.test_cli_ux.TestMissingMetadata object at 0x7fa4ae3d4b70>
    def setup(self):
        self._moved_cache_dir = _moved_cache_dir = CACHEDIR + "__"
>       os.rename(CACHEDIR, _moved_cache_dir)
E       FileNotFoundError: [Errno 2] No such file or directory: '/home/nils/.cache/fedmod' -> '/home/nils/.cache/fedmod__'
tests/test_cli_ux.py:22: FileNotFoundError
=============================== warnings summary ===============================
/home/nils/.virtualenvs/fedmod/lib/python3.7/site-packages/requests_toolbelt-0.8.0-py3.7.egg/requests_toolbelt/_compat.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
/home/nils/.virtualenvs/fedmod/lib/python3.7/site-packages/requests_toolbelt-0.8.0-py3.7.egg/requests_toolbelt/_compat.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
-- Docs: https://docs.pytest.org/en/latest/warnings.html
===================== 2 warnings, 1 error in 0.21 seconds ======================
(fedmod) nils@gibraltar:~/src/modularity/fedmod (master)>

Metadata Update from @nphilipp:
- Issue assigned to nphilipp

fixed in commit 94d1d4128690f8007ac7e6eeaa6e9ffdbebab7a4

Metadata Update from @nphilipp:
- Issue close_status updated to: RESOLVED
- Issue status updated to: Closed (was: Open)

Metadata