Skip to content

Commit

Permalink
removed unused fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: apetrynet <[email protected]>
  • Loading branch information
apetrynet committed Jul 24, 2024
1 parent 261263b commit 42b784b
Showing 1 changed file with 0 additions and 94 deletions.
94 changes: 0 additions & 94 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,28 +102,6 @@ def sample_dimensions_int():
return pyfdl.Dimensions(width=16, height=9, dtype=int)


@pytest.fixture
def sample_header() -> dict:
header = {
"uuid": "0E6D12BB-5D9A-461C-803E-5696E9CC8989",
"version": {"major": 0, "minor": 1},
"fdl_creator": "ASC FDL Committee",
"default_framing_intent": "FDLSMP03"
}
return header


@pytest.fixture
def sample_header_kwargs() -> dict:
header = {
"uuid_": "0E6D12BB-5D9A-461C-803E-5696E9CC8989",
"version": {"major": 0, "minor": 1},
"fdl_creator": "ASC FDL Committee",
"default_framing_intent": "FDLSMP03"
}
return header


@pytest.fixture
def sample_framing_intent_obj():
framing_intent = pyfdl.FramingIntent(
Expand All @@ -150,34 +128,6 @@ def sample_framing_decision_obj():
return fd


@pytest.fixture
def sample_framing_decision() -> dict:
fd = {
"label": "1.78-1 Framing",
"id": "20220310-FDLSMP03",
"framing_intent_id": "FDLSMP03",
"dimensions": {"width": 4728, "height": 3456},
"anchor_point": {"x": 228, "y": 432},
"protection_dimensions": {"width": 5184, "height": 3790},
"protection_anchor_point": {"x": 0, "y": 265}
}
return fd


@pytest.fixture
def sample_framing_decision_kwargs() -> dict:
fd = {
"label": "1.78-1 Framing",
"id_": "20220310-FDLSMP03",
"framing_intent_id": "FDLSMP03",
"dimensions": {"width": 4728, "height": 3456},
"anchor_point": {"x": 228, "y": 432},
"protection_dimensions": {"width": 5184, "height": 3790},
"protection_anchor_point": {"x": 0, "y": 265}
}
return fd


@pytest.fixture
def sample_canvas_obj():
canvas = pyfdl.Canvas(
Expand Down Expand Up @@ -207,16 +157,6 @@ def sample_context_obj():
return ctx


@pytest.fixture
def sample_context() -> dict:
ctx = {
"label": "PanavisionDXL2",
"context_creator": "ASC FDL Committee",
"canvases": []
}
return ctx


@pytest.fixture
def sample_canvas_template_obj():
canvas_template = pyfdl.CanvasTemplate(
Expand All @@ -234,40 +174,6 @@ def sample_canvas_template_obj():
return canvas_template


@pytest.fixture
def sample_canvas_template() -> dict:
canvas_template = {
"label": "VFX Pull",
"id": "VX220310",
"target_dimensions": {"width": 4096, "height": 2304},
"target_anamorphic_squeeze": 1.00,
"fit_source": "framing_decision.dimensions",
"fit_method": "width",
"alignment_method_vertical": "center",
"alignment_method_horizontal": "center",
"preserve_from_source_canvas": "canvas.dimensions",
"round": {"even": "even", "mode": "up"}
}
return canvas_template


@pytest.fixture
def sample_canvas_template_kwargs() -> dict:
canvas_template = {
"label": "VFX Pull",
"id_": "VX220310",
"target_dimensions": {"width": 4096, "height": 2304},
"target_anamorphic_squeeze": 1.00,
"fit_source": "framing_decision.dimensions",
"fit_method": "width",
"alignment_method_vertical": "center",
"alignment_method_horizontal": "center",
"preserve_from_source_canvas": "canvas.dimensions",
"round_": {"even": "even", "mode": "up"}
}
return canvas_template


@pytest.fixture
def sample_rounding_strategy_obj():
return pyfdl.RoundStrategy(even="even", mode="up")

0 comments on commit 42b784b

Please sign in to comment.