Remove test
This commit is contained in:
parent
c718c65849
commit
1765b9458f
|
@ -1165,18 +1165,3 @@ def test_log_file_cli_subdirectories_are_successfully_created(
|
|||
result = pytester.runpytest("--log-file=foo/bar/logf.log")
|
||||
assert "logf.log" in os.listdir(expected)
|
||||
assert result.ret == ExitCode.OK
|
||||
|
||||
|
||||
def test_locationline_returns_best_relative_location(pytester: Pytester) -> None:
|
||||
item = pytester.getitem("def test_func(): pass")
|
||||
item.config.option.verbose = 2
|
||||
|
||||
tr = TerminalReporter(item.config)
|
||||
path_to_test = os.path.join("unique", "path")
|
||||
fspath = os.path.join(pytester.path, path_to_test)
|
||||
nodeid = "nodeid::test"
|
||||
|
||||
result = tr._locationline(nodeid, fspath, 1, "domain")
|
||||
|
||||
expected_result = f"{nodeid} <- {path_to_test} "
|
||||
assert result == expected_result
|
||||
|
|
Loading…
Reference in New Issue