fixed label under 3d view
This commit is contained in:
@@ -20,8 +20,6 @@ mathematics (the camera, the sampler and the composer have their own files):
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import itertools
|
||||
import shutil
|
||||
import time
|
||||
from concurrent.futures import Future
|
||||
from dataclasses import replace
|
||||
@@ -51,33 +49,12 @@ from orisys_studio.scene3d.asset_source import (
|
||||
load_package,
|
||||
no_asset_diagnostic,
|
||||
)
|
||||
from tests.test_ui_smoke import ( # noqa: F401 (fixtures are imported by name)
|
||||
_finish,
|
||||
_running_window,
|
||||
record_root,
|
||||
replay_recording,
|
||||
from tests.conftest import (
|
||||
finish_run as _finish,
|
||||
running_window as _running_window,
|
||||
show_window as _show,
|
||||
)
|
||||
|
||||
#: Scratch root for the two-session comparison. One subdirectory per run, because
|
||||
#: the point of the test is that two recordings are identical, not that one file
|
||||
#: can be overwritten.
|
||||
RECORD_SCRATCH = Path(__file__).resolve().parents[1] / "outputs" / "_test_record_3d"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def next_record_root():
|
||||
shutil.rmtree(RECORD_SCRATCH, ignore_errors=True)
|
||||
RECORD_SCRATCH.mkdir(parents=True, exist_ok=True)
|
||||
counter = itertools.count()
|
||||
|
||||
def _next() -> Path:
|
||||
path = RECORD_SCRATCH / f"run{next(counter)}"
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
return path
|
||||
|
||||
yield _next
|
||||
shutil.rmtree(RECORD_SCRATCH, ignore_errors=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def write_poc(tmp_path):
|
||||
@@ -1074,8 +1051,6 @@ def test_the_replay_view_shows_the_pane_and_says_where_the_field_comes_from(
|
||||
what a recompute pass produces from the video. Those are two different claims and
|
||||
the label has to distinguish them.
|
||||
"""
|
||||
from tests.test_ui_smoke import _show
|
||||
|
||||
window = _show(make_window(sensor_type="finger"), (1440, 880))
|
||||
try:
|
||||
assert window._load_recording(Path(replay_recording))
|
||||
@@ -1138,7 +1113,6 @@ def test_every_run_gets_a_new_generation(make_window, qt_app):
|
||||
so the picture stays on the first run's last frame forever.
|
||||
"""
|
||||
from orisys_app_shared.scene3d.contracts import FrameIdentity
|
||||
from tests.test_ui_smoke import _show
|
||||
import ui_check
|
||||
|
||||
window = _show(make_window(sensor_type="finger"), (1440, 880))
|
||||
|
||||
Reference in New Issue
Block a user