From 1765b9458fa9500e2210e9c9d749978e2a67e521 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 1 Nov 2021 08:49:20 +0200 Subject: [PATCH] Remove test --- testing/logging/test_reporting.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/testing/logging/test_reporting.py b/testing/logging/test_reporting.py index ba2ee771e..323ff7b24 100644 --- a/testing/logging/test_reporting.py +++ b/testing/logging/test_reporting.py @@ -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