Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all basic tests enabled #274

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 39 additions & 36 deletions tests/functional/adapter/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
import pytest

import os

import pytest
from dbt.tests.adapter.basic.files import (base_ephemeral_sql, base_table_sql,
base_view_sql, ephemeral_table_sql,
ephemeral_view_sql)
from dbt.tests.adapter.basic.test_adapter_methods import BaseAdapterMethod
from dbt.tests.adapter.basic.test_base import BaseSimpleMaterializations
from dbt.tests.adapter.basic.test_singular_tests import BaseSingularTests
from dbt.tests.adapter.basic.test_singular_tests_ephemeral import BaseSingularTestsEphemeral
from dbt.tests.adapter.basic.test_docs_generate import (BaseDocsGenerate,
BaseDocsGenReferences)
from dbt.tests.adapter.basic.test_empty import BaseEmpty
from dbt.tests.adapter.basic.test_ephemeral import BaseEphemeral
from dbt.tests.adapter.basic.test_incremental import BaseIncremental
from dbt.tests.adapter.basic.test_generic_tests import BaseGenericTests
from dbt.tests.adapter.basic.test_docs_generate import BaseDocsGenerate, BaseDocsGenReferences
from dbt.tests.adapter.basic.test_snapshot_check_cols import BaseSnapshotCheckCols
from dbt.tests.adapter.basic.test_snapshot_timestamp import BaseSnapshotTimestamp
from dbt.tests.adapter.basic.files import (
base_view_sql,
base_table_sql,
base_ephemeral_sql,
ephemeral_view_sql,
ephemeral_table_sql
)

from dbt.tests.util import (
run_dbt,
get_manifest,
check_result_nodes_by_name,
relation_from_name,
check_relations_equal,
)

from tests.util import get_s3_location, get_region, cleanup_s3_location

from dbt.tests.adapter.basic.test_incremental import BaseIncremental
from dbt.tests.adapter.basic.test_singular_tests import BaseSingularTests
from dbt.tests.adapter.basic.test_singular_tests_ephemeral import \
BaseSingularTestsEphemeral
from dbt.tests.adapter.basic.test_snapshot_check_cols import \
BaseSnapshotCheckCols
from dbt.tests.adapter.basic.test_snapshot_timestamp import \
BaseSnapshotTimestamp
from dbt.tests.adapter.basic.test_table_materialization import \
BaseTableMaterialization
from dbt.tests.adapter.basic.test_validate_connection import \
BaseValidateConnection
from dbt.tests.util import (check_relations_equal, check_result_nodes_by_name,
get_manifest, relation_from_name, run_dbt)
from tests.util import cleanup_s3_location, get_region, get_s3_location

s3bucket = get_s3_location()
region = get_region()
Expand Down Expand Up @@ -58,6 +55,8 @@
"""
base_materialized_var_sql = config_materialized_var + config_incremental_strategy + model_base

class TestBaseCachingGlue(BaseAdapterMethod):
pass

class TestSimpleMaterializationsGlue(BaseSimpleMaterializations):
# all tests within this test has the same schema
Expand Down Expand Up @@ -269,19 +268,23 @@ def test_generic_tests(self, project):

pass

# To test
#class TestDocsGenerate(BaseDocsGenerate):
# pass
class TestDocsGenerateGlue(BaseDocsGenerate):
pass


class TestDocsGenReferencesGlue(BaseDocsGenReferences):
pass


#class TestDocsGenReferences(BaseDocsGenReferences):
# pass
class TestSnapshotCheckColsGlue(BaseSnapshotCheckCols):
pass


# To Dev
#class TestSnapshotCheckColsGlue(BaseSnapshotCheckCols):
# pass
class TestSnapshotTimestampGlue(BaseSnapshotTimestamp):
pass

class TestTableMatGlue(BaseTableMaterialization):
pass

#class TestSnapshotTimestampGlue(BaseSnapshotTimestamp):
# pass
class TestValidateConnectionGlue(BaseValidateConnection):
pass