Skip to content

Commit 931e511

Browse files
pmantica1bojanserafimov
authored andcommitted
Used relative imports (kensho-technologies#244)
1 parent 4c6a5cd commit 931e511

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

graphql_compiler/compiler/ir_lowering_sql/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2018-present Kensho Technologies, LLC.
22
from collections import namedtuple
33

4-
from graphql_compiler.compiler import blocks, expressions
4+
from ...compiler import blocks, expressions
55

66

77
UNSUPPORTED_META_FIELDS = {

graphql_compiler/tests/integration_tests/test_backends_integration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
from parameterized import parameterized
88
import pytest
99

10-
from graphql_compiler.tests import test_backend
11-
from graphql_compiler.tests.test_helpers import generate_schema, generate_schema_graph
12-
10+
from ...tests import test_backend
11+
from ...tests.test_helpers import generate_schema, generate_schema_graph
1312
from ..test_helpers import SCHEMA_TEXT, compare_ignoring_whitespace, get_schema
1413
from .integration_backend_config import MATCH_BACKENDS, SQL_BACKENDS
1514
from .integration_test_helpers import (

graphql_compiler/tests/test_helpers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
from graphql.utils.build_ast_schema import build_ast_schema
88
import six
99

10-
from graphql_compiler import get_graphql_schema_from_orientdb_schema_data
11-
from graphql_compiler.schema_generation.schema_graph import SchemaGraph
12-
from graphql_compiler.schema_generation.utils import ORIENTDB_SCHEMA_RECORDS_QUERY
13-
10+
from .. import get_graphql_schema_from_orientdb_schema_data
1411
from ..debugging_utils import pretty_print_gremlin, pretty_print_match
12+
from ..schema_generation.schema_graph import SchemaGraph
13+
from ..schema_generation.utils import ORIENTDB_SCHEMA_RECORDS_QUERY
1514

1615

1716
# The strings which we will be comparing have newlines and spaces we'd like to get rid of,

graphql_compiler/tests/test_schema_generation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
from graphql.type import GraphQLList, GraphQLString
66
import six
77

8-
from graphql_compiler import get_graphql_schema_from_orientdb_schema_data
9-
8+
from .. import get_graphql_schema_from_orientdb_schema_data
109
from ..schema_generation.graphql_schema import _get_union_type_name
1110
from ..schema_generation.schema_graph import SchemaGraph
1211
from ..schema_generation.schema_properties import (

0 commit comments

Comments
 (0)