Skip to content

Commit

Permalink
fix according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Nov 28, 2023
1 parent bc80c07 commit a83dcbb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions unittests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ def test_file_existence(self):
for file in os.scandir(os.path.join(basedir, 'dojo', 'tools', parser_dir.name)):
if file.is_file() and file.name != '__pycache__' and file.name != "__init__.py":
f = os.path.join(basedir, 'dojo', 'tools', parser_dir.name, file.name)
import subprocess
task = subprocess.Popen(["cat", f], stdout=subprocess.PIPE)
read_true = False
for line in task.stdout:
for line in open(f, "r").readlines():
if read_true is True:
if ('"utf-8"' in str(line) or "'utf-8'" in str(line) or '"utf-8-sig"' in str(line) or "'utf-8-sig'" in str(line)) and i <= 4:
read_true = False
Expand Down

0 comments on commit a83dcbb

Please sign in to comment.