My pipeline looks basically the same as previous examples. It works in compass properly but for some reason running the test is not really showing relevant info about what I have wrong.
C:\Users\Gustavo\Documents\M220\mflix-python>pytest -m user_report
Traceback (most recent call last):
File “c:\program files (x86)\python37-32\lib\site-packages_pytest\config.py”,
line 327, in _getconftestmodules
return self._path2confmods[path]
KeyError: local(‘C:\Users\Gustavo\Documents\M220\mflix-python\tests’)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “c:\program files (x86)\python37-32\lib\site-packages_pytest\config.py”,
line 358, in _importconftest
return self._conftestpath2mod[conftestpath]
KeyError: local(‘C:\Users\Gustavo\Documents\M220\mflix-python\tests\conft
est.py’)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “c:\program files (x86)\python37-32\lib\site-packages_pytest\config.py”,
line 364, in _importconftest
mod = conftestpath.pyimport()
File “c:\program files (x86)\python37-32\lib\site-packages\py_path\local.py”,
line 721, in pyimport
raise self.ImportMismatchError(modname, modfile, self)
py._path.local.LocalPath.ImportMismatchError: (‘tests.conftest’, ‘C:\Users\gum
artinez\Documents\M220\mflix-python\tests\conftest.py’, local(‘C:\Users\G
ustavo\Documents\M220\mflix-python\tests\conftest.py’))
ERROR: could not load C:\Users\Gustavo\Documents\M220\mflix-python\tests\conftes
t.py
This is my query,
group_stage = {'$group': {'_id': {'_id': '$email'}, 'comments': {'$sum': 1}}}
sort_stage = {'$sort':{'comments': -1}}
limit_stage = {'$limit': 20}
does anyone has an idea what could it be? I’m basically stuck in there t.t
Regards,