Skip to content

Commit 105735f

Browse files
author
Codeflash Bot
committed
only capturing for dummy_fn but not tpsort
1 parent 9ac79fb commit 105735f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_unit_test_discovery.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def topologicalSort(self):
745745
import pytest
746746
747747
@pytest.fixture
748-
def g(self):
748+
def g():
749749
return Graph(6)
750750
751751
def test_topological_sort(g):
@@ -766,7 +766,7 @@ def test_topological_sort(g):
766766
discovered_tests, _, _ = discover_unit_tests(test_config, file_to_funcs_to_optimize={code_file_path: [fto]})
767767

768768
# Verify the unittest was discovered
769-
assert len(discovered_tests) == 1
769+
assert len(discovered_tests) == 2
770770
assert "topological_sort.Graph.topologicalSort" in discovered_tests
771771
assert len(discovered_tests["topological_sort.Graph.topologicalSort"]) == 1
772772
tpsort_test = next(iter(discovered_tests["topological_sort.Graph.topologicalSort"]))
@@ -1402,7 +1402,7 @@ def test_analyze_imports_fixture():
14021402
import pytest
14031403
14041404
@pytest.fixture
1405-
def g(self):
1405+
def g():
14061406
return Graph(6)
14071407
14081408
def test_topological_sort(g):

0 commit comments

Comments
 (0)