old_contents: from odoo.tests.common import TransactionCase
  
  
  class ConfigurationCreate(TransactionCase):
  
      def test_create(self):
          """Test configuration item does not make variations"""
  
          attr_test = self.env['product.attribute'].create({
              'name': 'Test',
              'value_ids': [
                  (0, 0, {'name': '1'}),
                  (0, 0, {'name': '2'}),
              ],
          })
  
          test_template = self.env['product.template'].create({
              'name': 'Test Configuration',
              'config_ok': True,
              'type': 'consu',
              'categ_id': self.env.ref('product.product_category_5').id,
              'attribute_line_ids': [(0, 0, {
                  'attribute_id': attr_test.id,
                  'value_ids': [
                      (6, 0, attr_test.value_ids.ids),
                  ],
                  'required': True,
              }),
              ]
          })
  
          self.assertEqual(test_template.product_variant_count, 0,
                           "Create should not have any variants")
  
new_contents: from odoo.tests.common import TransactionCase
  
  
  class ConfigurationCreate(TransactionCase):
  
      def test_01_create(self):
          """Test configuration item does not make variations"""
  
          attr_test = self.env['product.attribute'].create({
              'name': 'Test',
              'value_ids': [
                  (0, 0, {'name': '1'}),
                  (0, 0, {'name': '2'}),
              ],
          })
  
          test_template = self.env['product.template'].create({
              'name': 'Test Configuration',
              'config_ok': True,
              'type': 'consu',
              'categ_id': self.env.ref('product.product_category_5').id,
              'attribute_line_ids': [(0, 0, {
                  'attribute_id': attr_test.id,
                  'value_ids': [
                      (6, 0, attr_test.value_ids.ids),
                  ],
                  'required': True,
              }),
              ]
          })
  
          self.assertEqual(test_template.product_variant_count, 0,
                           "Create should not have any variants")
  
      def test_02_product_configuration_restriction(self):
          """Values on future steps breaking current wizard view """
          pass
  
subject: add test