Cannot start test due to invalid config

I am trying to run my test through PyCharm and keep getting an issue with the configuration's keywords.

The keyword is not replacing the period with "and" like it should,

 

Not really sure what to do to fix this. 

 

Here is the failed stack

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\main.py", line 94, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\main.py", line 124, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\main.py", line 133, in pytest_collection
INTERNALERROR> return session.perform_collect()
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\main.py", line 567, in perform_collect
INTERNALERROR> config=self.config, items=items)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\mark.py", line 78, in pytest_collection_modifyitems
INTERNALERROR> if keywordexpr and not matchkeyword(colitem, keywordexpr):
INTERNALERROR> File "C:\Python27\lib\site-packages\_pytest\mark.py", line 159, in matchkeyword
INTERNALERROR> return eval(keywordexpr, {}, mapping)
INTERNALERROR> File "<string>", line 1, in <module>
INTERNALERROR> AttributeError: 'bool' object has no attribute 'test_agreement_sales'
1 comment
Comment actions Permalink

Fixed the issue by uninstalling pytest and py then reinstalling the lastest version of them back.

 

 

0

Please sign in to leave a comment.