@@ -89,8 +89,9 @@ def test_diffsync_get_with_generic_model(generic_diffsync, generic_diffsync_mode
8989 # The generic_diffsync_model has an empty identifier/unique-id
9090 assert generic_diffsync .get (DiffSyncModel , "" ) == generic_diffsync_model
9191 assert generic_diffsync .get (DiffSyncModel .get_type (), "" ) == generic_diffsync_model
92- # DiffSync doesn't know how to construct a uid str for a "diffsyncmodel"
93- assert generic_diffsync .get (DiffSyncModel .get_type (), {}) is None
92+ # DiffSync doesn't know how to construct a uid str for a "diffsyncmodel" (it needs the class or instance, not a str)
93+ with pytest .raises (ValueError ):
94+ generic_diffsync .get (DiffSyncModel .get_type (), {})
9495 # Wrong object-type - no match
9596 with pytest .raises (ObjectNotFound ):
9697 generic_diffsync .get ("" , "" )
@@ -147,6 +148,7 @@ class BadElementName(DiffSync):
147148
148149
149150def test_diffsync_subclass_validation_missing_top_level ():
151+ # pylint: disable=unused-variable
150152 with pytest .raises (AttributeError ) as excinfo :
151153
152154 class MissingTopLevel (DiffSync ):
@@ -160,6 +162,7 @@ class MissingTopLevel(DiffSync):
160162
161163
162164def test_diffsync_subclass_validation_top_level_not_diffsyncmodel ():
165+ # pylint: disable=unused-variable
163166 with pytest .raises (AttributeError ) as excinfo :
164167
165168 class TopLevelNotDiffSyncModel (DiffSync ):
0 commit comments