def test_adds_data_source_to_default_group(self):
     data_source = DataSource.create_with_group(
         org=self.factory.org,
         name='test',
         options=ConfigurationContainer.from_json('{"dbname": "test"}'),
         type='pg')
     self.assertIn(self.factory.org.default_group.id, data_source.groups)
Esempio n. 2
0
 def test_adds_data_source_to_default_group(self):
     data_source = DataSource.create_with_group(org=self.factory.org, name='test', options='{}', type='pg')
     self.assertIn(self.factory.org.default_group.id, data_source.groups)
Esempio n. 3
0
 def test_adds_data_source_to_default_group(self):
     data_source = DataSource.create_with_group(org=self.factory.org, name='test', options=ConfigurationContainer.from_json('{"dbname": "test"}'), type='pg')
     self.assertIn(self.factory.org.default_group.id, data_source.groups)
Esempio n. 4
0
 def test_adds_data_source_to_default_group(self):
     data_source = DataSource.create_with_group(org=self.factory.org,
                                                name='test',
                                                options='{}',
                                                type='pg')
     self.assertIn(self.factory.org.default_group.id, data_source.groups)