Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mturzanska committed Oct 22, 2017
1 parent c81a01f commit a7f7cfe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 71 deletions.
29 changes: 0 additions & 29 deletions test/unit/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,35 +190,6 @@ def test__model_materializations(self):
.get('materialized')
self.assertEquals(actual, expected)

def test__model_enabled(self):
self.use_models({
'model_one': 'select * from events',
'model_two': "select * from {{ref('model_one')}}",
})

cfg = {
"models": {
"materialized": "table",
"test_models_compile": {
"model_one": {"enabled": True},
"model_two": {"enabled": False},
}
}
}

compiler = self.get_compiler(self.get_project(cfg))
graph, linker = compiler.compile()

six.assertCountEqual(
self, linker.nodes(),
['model.test_models_compile.model_one',
'model.test_models_compile.model_two'])

six.assertCountEqual(
self, linker.edges(),
[('model.test_models_compile.model_one',
'model.test_models_compile.model_two',)])

def test__model_incremental(self):
self.use_models({
'model_one': 'select * from events'
Expand Down
42 changes: 0 additions & 42 deletions test/unit/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,48 +1101,6 @@ def test__other_project_config(self):
'raw_sql': self.find_input_by_name(
models, 'view').get('raw_sql')
},
'model.snowplow.disabled': {
'name': 'disabled',
'schema': 'analytics',
'resource_type': 'model',
'unique_id': 'model.snowplow.disabled',
'fqn': ['snowplow', 'disabled'],
'empty': False,
'package_name': 'snowplow',
'refs': [],
'depends_on': {
'nodes': [],
'macros': []
},
'path': 'disabled.sql',
'original_file_path': 'disabled.sql',
'root_path': get_os_path('/usr/src/app'),
'config': disabled_config,
'tags': set(),
'raw_sql': self.find_input_by_name(
models, 'disabled').get('raw_sql')
},
'model.snowplow.package': {
'name': 'package',
'schema': 'analytics',
'resource_type': 'model',
'unique_id': 'model.snowplow.package',
'fqn': ['snowplow', 'views', 'package'],
'empty': False,
'package_name': 'snowplow',
'refs': [],
'depends_on': {
'nodes': [],
'macros': []
},
'path': get_os_path('views/package.sql'),
'original_file_path': get_os_path('views/package.sql'),
'root_path': get_os_path('/usr/src/app'),
'config': sort_config,
'tags': set(),
'raw_sql': self.find_input_by_name(
models, 'package').get('raw_sql')
},
'model.snowplow.multi_sort': {
'name': 'multi_sort',
'schema': 'analytics',
Expand Down

0 comments on commit a7f7cfe

Please sign in to comment.