Skip to content

Commit

Permalink
node.resource_type
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurpulkit committed May 30, 2024
1 parent b157547 commit 4145be8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _get_node(self, node: ManifestNode) -> AltimateManifestNode:
language,
contract,
) = ([], [], None, None, None, None, None, "", "", None)
if node.resource_type.value != SEED:
if node.resource_type != SEED:
sources = node.sources
metrics = node.metrics
depends_on_nodes = node.depends_on.nodes if node.depends_on else None
Expand All @@ -75,7 +75,7 @@ def _get_node(self, node: ManifestNode) -> AltimateManifestNode:
database=node.database,
schema_name=node.schema_,
name=node.name,
resource_type=AltimateResourceType(node.resource_type.value),
resource_type=AltimateResourceType(node.resource_type),
package_name=node.package_name,
path=node.path,
description=node.description,
Expand Down Expand Up @@ -337,7 +337,7 @@ def get_nodes(
nodes = {}
for node in self.manifest.nodes.values():
if (
node.resource_type.value
node.resource_type
in [
AltimateResourceType.seed.value,
AltimateResourceType.test.value,
Expand Down Expand Up @@ -381,7 +381,7 @@ def get_tests(self, type=None) -> Dict[str, AltimateManifestTestNode]:

for node in self.manifest.nodes.values():
# Check if the node is a test and of the correct type
if node.resource_type.value == AltimateResourceType.test.value:
if node.resource_type == AltimateResourceType.test.value:
if any(isinstance(node, t) for t in types):
tests[node.unique_id] = self._get_tests(node)
return tests
Expand Down

0 comments on commit 4145be8

Please sign in to comment.