Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Kraus <[email protected]>
  • Loading branch information
MP-StefanKraus committed Sep 6, 2024
1 parent fa5f485 commit 468dc8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]

description = "A package to support FRET requirement usage in Robot Framework"
requires-python = ">=3.9"
requires-python = ">=3.10"

classifiers = [
"Programming Language :: Python :: 3",
Expand Down
5 changes: 4 additions & 1 deletion tests/e2e_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def test__run_fret_to_robot_cli__given_file__correct_robot_output(
result = rf.read().strip()

with open(testfile_dir / "expected_result.robot") as ef:
expected_result = ef.read().strip()
lines = ef.readlines()
if lines[0].startswith("# SPDX-FileCopyrightText:"):
lines = lines[3:]
expected_result = "".join(lines).strip()

assert result == expected_result

Expand Down
2 changes: 1 addition & 1 deletion tests/test_generate_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test__to_python_expr__all_python_fretish_diffs__all_translated__all_():
[
("(d <= 2)", "(d <= 2)"),
("(d != 2)", "(d != 2)"),
("!(d == 2)", "not (d == 2)"),
("! (d == 2)", "not (d == 2)"),
("(d ^ 2)", "(d ** 2)"),
("(d & 2==2)", "(d and 2==2)"),
("(d | 2==2)", "(d or 2==2)"),
Expand Down

0 comments on commit 468dc8a

Please sign in to comment.