コード例 #1
0
def record_build_name(request):
    record_name = get_record_name(
        class_name=request.cls.__name__ if request.cls is not None else None,
        test_name=request.function.__name__,
    )
    path = get_perf_path(file_path=request.fspath.strpath)
    with record(record_name=record_name, path=path):
        yield
コード例 #2
0
 def test_unknown_file(self):
     assert get_perf_path("foo.plob") == "foo.plob.perf.yml"
コード例 #3
0
 def test_unknown_file(self):
     assert get_perf_path('foo.plob') == 'foo.plob.perf.yml'
コード例 #4
0
 def test_pyc_file(self):
     assert get_perf_path("foo.pyc") == "foo.perf.yml"
コード例 #5
0
 def test_pyc_file(self):
     assert get_perf_path('foo.pyc') == 'foo.perf.yml'