Skip to content

Commit 6d22559

Browse files
committed
add aliases tests
1 parent 874ea3f commit 6d22559

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import pytest
2+
from dbt.tests.adapter.aliases.fixtures import MACROS__EXPECT_VALUE_SQL
3+
from dbt.tests.adapter.aliases.test_aliases import (
4+
BaseAliasErrors,
5+
BaseAliases,
6+
BaseSameAliasDifferentDatabases,
7+
BaseSameAliasDifferentSchemas,
8+
)
9+
10+
11+
class TestAliasesSQLServer(BaseAliases):
12+
@pytest.fixture(scope="class")
13+
def macros(self):
14+
return {"expect_value.sql": MACROS__EXPECT_VALUE_SQL}
15+
16+
17+
class TestAliasErrorsSQLServer(BaseAliasErrors):
18+
@pytest.fixture(scope="class")
19+
def macros(self):
20+
return {"expect_value.sql": MACROS__EXPECT_VALUE_SQL}
21+
22+
23+
class TestSameAliasDifferentSchemasSQLServer(BaseSameAliasDifferentSchemas):
24+
@pytest.fixture(scope="class")
25+
def macros(self):
26+
return {"expect_value.sql": MACROS__EXPECT_VALUE_SQL}
27+
28+
29+
class TestSameAliasDifferentDatabasesSQLServer(BaseSameAliasDifferentDatabases):
30+
@pytest.fixture(scope="class")
31+
def macros(self):
32+
return {"expect_value.sql": MACROS__EXPECT_VALUE_SQL}

0 commit comments

Comments
 (0)