(text, version)
| 63 | ], |
| 64 | ) |
| 65 | def test_executable_detection(text, version): |
| 66 | # GIVEN / WHEN |
| 67 | result = BINARY_REGEXP.match(text) |
| 68 | |
| 69 | # THEN |
| 70 | assert result |
| 71 | |
| 72 | major, minor = version |
| 73 | assert int(result.group("major")) == major |
| 74 | assert int(result.group("minor")) == minor |
| 75 | |
| 76 | |
| 77 | @pytest.mark.parametrize("text", ["cat3.8", "python3", "python2"]) |
nothing calls this directly
no outgoing calls
no test coverage detected