Update composition flag usage (#36263)
* update composition flag usage * remove print * fix tests * actually fix * oh c'mon * now should be fixed right? * fix copies
This commit is contained in:
committed by
GitHub
parent
08e3217baf
commit
6f4058aee3
@@ -163,7 +163,7 @@ class ConfigTester:
|
||||
self.parent.assertEqual(len(config.label2id), 3)
|
||||
|
||||
def check_config_can_be_init_without_params(self):
|
||||
if self.config_class.is_composition:
|
||||
if self.config_class.has_no_defaults_at_init:
|
||||
with self.parent.assertRaises(ValueError):
|
||||
config = self.config_class()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user