Show test durations (#486)
Show how long tests took to run, also remove a test-assert which is too restrictive
This commit is contained in:
Родитель
2c83b2c058
Коммит
2c3f911abf
|
@ -69,6 +69,7 @@ if __name__ == "__main__":
|
|||
logger.debug("junit= --junitxml={}".format(args.xmlname))
|
||||
pytest_cmd = [
|
||||
"pytest",
|
||||
"--durations=100",
|
||||
"--ignore=contrib",
|
||||
args.testfolder,
|
||||
"-m",
|
||||
|
|
|
@ -75,7 +75,6 @@ def test_03_notebook_run(detection_notebooks):
|
|||
nb_output = sb.read_notebook(OUTPUT_NOTEBOOK)
|
||||
training_losses = nb_output.scraps["training_losses"].data
|
||||
assert len(training_losses) == epochs
|
||||
assert training_losses[-1] < 1.5
|
||||
assert training_losses[0] > 1.5*training_losses[-1]
|
||||
assert len(nb_output.scraps["keypoints"].data) == len(
|
||||
nb_output.scraps["bboxes"].data
|
||||
|
|
Загрузка…
Ссылка в новой задаче