Compare commits

...

2 Commits

Author SHA1 Message Date
Gerda Shank
26351e0d95 Remove pip upgrade from integration test runs because of pip upgrade
error
2022-06-01 10:37:20 -04:00
Gerda Shank
57e7600820 Fix test_graph_selection so it can run separately 2022-06-01 10:33:05 -04:00
4 changed files with 13 additions and 5 deletions

View File

@@ -149,8 +149,9 @@ jobs:
- name: Install python tools
run: |
pip install --user --upgrade pip
pip --version
# Removing pip upgrade because of #5321
# pip install --user --upgrade pip
# pip --version
pip install tox
tox --version

View File

@@ -9,7 +9,7 @@ endif
.PHONY: dev
dev: ## Installs dbt-* packages in develop mode along with development dependencies.
@\
pip install -r dev-requirements.txt -r editable-requirements.txt && \
pip install -r dev-requirements.txt -r editable-requirements.txt
.PHONY: mypy
mypy: .env ## Runs mypy against staged changes for static type checking.

View File

@@ -2,7 +2,7 @@ import os
import re
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from dbt.dataclass_schema import StrEnum
from dbt.dataclass_schema import StrEnum, dbtClassMixin
from typing import Set, Iterator, List, Optional, Dict, Union, Any, Iterable, Tuple
from .graph import UniqueId
@@ -169,7 +169,7 @@ class SelectionCriteria:
)
class BaseSelectionGroup(Iterable[SelectionSpec], metaclass=ABCMeta):
class BaseSelectionGroup(dbtClassMixin, Iterable[SelectionSpec], metaclass=ABCMeta):
def __init__(
self,
components: Iterable[SelectionSpec],

View File

@@ -11,6 +11,13 @@ from dbt.node_types import NodeType
import networkx as nx
from dbt import flags
from argparse import Namespace
from dbt.contracts.project import UserConfig
flags.set_from_args(Namespace(), UserConfig())
def _get_graph():
integer_graph = nx.balanced_tree(2, 2, nx.DiGraph())