mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
🐶 fix linting issues
This commit is contained in:
parent
52678c2ca4
commit
0f539ec6ea
1 changed files with 3 additions and 2 deletions
|
|
@ -362,7 +362,7 @@ def test_representation_equality() -> None:
|
|||
Planar(planar_configuration="RGBA"),
|
||||
])
|
||||
|
||||
# lets assume ids are the same (because ids are randomly generated)
|
||||
# let's assume ids are the same (because ids are randomly generated)
|
||||
rep_b.representation_id = rep_d.representation_id = rep_a.representation_id
|
||||
rep_c.representation_id = rep_e.representation_id = rep_a.representation_id
|
||||
rep_f.representation_id = rep_a.representation_id
|
||||
|
|
@ -379,6 +379,7 @@ def test_representation_equality() -> None:
|
|||
# because of the trait difference
|
||||
assert rep_d != rep_f
|
||||
|
||||
|
||||
def test_get_repre_by_name():
|
||||
"""Test getting representation by name."""
|
||||
rep_a = Representation(name="test_a", traits=[
|
||||
|
|
@ -401,4 +402,4 @@ def test_get_repre_by_name():
|
|||
])
|
||||
|
||||
representations = [rep_a, rep_b]
|
||||
repre = next(rep for rep in representations if rep.name == "test_a")
|
||||
_ = next(rep for rep in representations if rep.name == "test_a")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue