Skip to content

Commit

Permalink
remove string building from Model.name
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Sep 26, 2024
1 parent cf2f7be commit 8265e5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/functional/relation_tests/test_relation_type_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ class Model:

@property
def name(self) -> str:
name = f"{self.relation_type}"
if self.table_format:
name += f"_{self.table_format}"
name = f"{self.relation_type}_{self.table_format}"
else:
name = f"{self.relation_type}"
return name


Expand Down

0 comments on commit 8265e5e

Please sign in to comment.