You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test Junkie version pip show test_junkie
Name: test-junkie
Version: 0.7a3
Summary: Modern Testing Framework
Home-page: https://www.test-junkie.com/
Author: Artur Spirin
Author-email: as.no.replies@gmail.com
License: UNKNOWN
Location: c:\serp_storage.venv\lib\site-packages
Requires: coverage, colorama, configparser, psutil, appdirs, statistics
Required-by:
Platform aka Windows 10 or Linux Mint 18.1
Windows 10
Command used, if running via terminal
tj config update -s "C:\serp_storage\tests\test_serp_storage.py" --html_report "C:\serp_storage\report.html"
tj run
Smallest code snippet that can reproduce the issue and /or description of the issue
(.venv) PS C:\serp_storage> tj run
[INFO] Scanning: C:\serp_storage\tests\test_serp_storage.py ...
[INFO] Scan finished in: 0.90 seconds. Found: 1 suite(s).
[INFO] Running tests ...
[ERROR] Unexpected error during test execution.
Traceback (most recent call last):
File "c:\serp_storage\.venv\lib\site-packages\test_junkie\cli\cli_runner.py", line 271, in run_suites
quiet=args.quiet)
File "c:\serp_storage\.venv\lib\site-packages\test_junkie\runner.py", line 131, in run
self.__settings = Settings(runner_kwargs=self.__kwargs, run_kwargs=kwargs)
File "c:\serp_storage\.venv\lib\site-packages\test_junkie\settings.py", line 48, in __init__
self.__print_settings()
File "c:\serp_storage\.venv\lib\site-packages\test_junkie\settings.py", line 65, in __print_settings
value=self.html_report, type=type(self.html_report)))
File "c:\serp_storage\.venv\lib\site-packages\test_junkie\settings.py", line 192, in html_report
key="html_report", default=Settings.__DEFAULT_HTML)
File "c:\serp_storage\.venv\lib\site-packages\test_junkie\settings.py", line 99, in __get_value
value = ast.literal_eval(value)
File "C:\Users\hkuang\AppData\Local\Programs\Python\Python36\lib\ast.py", line 48, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "C:\Users\hkuang\AppData\Local\Programs\Python\Python36\lib\ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
C:\serp_storage\report.html
^
SyntaxError: invalid syntax
value = C:\serp_storage\report.html
type(value) = <class 'str'>
Expected behaviour
Actual behaviour
If attaching logs, make sure to remove any personal information, credentials, tokens, keys - anything that you don't
want to become public.
The text was updated successfully, but these errors were encountered:
HenleyKuang
changed the title
__get_value function - ast.literal_eval on a string type is returning SyntaxError
__get_value function - ast.literal_eval on a str type to get a str type is returning SyntaxError
Jul 23, 2019
python --version
3.6.8
pip show test_junkie
Name: test-junkie
Version: 0.7a3
Summary: Modern Testing Framework
Home-page: https://www.test-junkie.com/
Author: Artur Spirin
Author-email: as.no.replies@gmail.com
License: UNKNOWN
Location: c:\serp_storage.venv\lib\site-packages
Requires: coverage, colorama, configparser, psutil, appdirs, statistics
Required-by:
Windows 10
value = C:\serp_storage\report.html
type(value) = <class 'str'>
Expected behaviour
Actual behaviour
If attaching logs, make sure to remove any personal information, credentials, tokens, keys - anything that you don't
want to become public.
The text was updated successfully, but these errors were encountered: