Skip to content

Commit

Permalink
Fix test_subgroups.py issue with line changes
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
  • Loading branch information
lebrice committed Jan 30, 2025
1 parent 4e09361 commit c6b00c7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions test/test_subgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,12 +751,12 @@ def test_help(
here = Path(__file__).relative_to(Path.cwd())
file_regression.check(
f"""\
# Regression file for [this test]({here}:{inspect.getsourcelines(test_help)[1]})
# Regression file for {Path(__file__).name:}::{test_help.__name__}
Given Source code:
```python
{''.join(inspect.getsourcelines(dataclass_type)[0])}
{"".join(inspect.getsourcelines(dataclass_type)[0])}
```
and command: {command!r}
Expand Down
2 changes: 1 addition & 1 deletion test/test_subgroups/test_help[Config---help].md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down
2 changes: 1 addition & 1 deletion test/test_subgroups/test_help[ConfigWithFrozen---help].md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression file for [this test](test/test_subgroups.py:730)
# Regression file for test_subgroups.py::test_help

Given Source code:

Expand Down

0 comments on commit c6b00c7

Please sign in to comment.