mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 19:00:09 -04:00
9 lines
354 B
Python
9 lines
354 B
Python
from tests import BaseTestCase
|
|
from redash.models import DataSource
|
|
|
|
|
|
class TestDataSourceCreate(BaseTestCase):
|
|
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)
|