Skip to content

Commit 970cf87

Browse files
authored
Fix a bug that occurs when specifyin TERC links in TST (#74)
The link type is called TERC in eiffel schema files, but the eiffel graphql API spelled it TERCC, resulting in TST events not links not being shown when TST has these links.
1 parent 15b3560 commit 970cf87

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/eiffel_graphql_api/graphql/schemas/links/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from .runtime_environment import RuntimeEnvironment
3131
from .source_change_base import *
3232
from .subject import Subject
33-
from .tercc import Tercc
33+
from .terc import Terc
3434
from .test_case_execution import *
3535
from .test_suite_execution import *
3636
from .verification_basis import VerificationBasis

src/eiffel_graphql_api/graphql/schemas/links/tercc.py renamed to src/eiffel_graphql_api/graphql/schemas/links/terc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16-
"""Resolve tercc link."""
16+
"""Resolve terc link."""
1717
import graphene
1818

1919
from eiffel_graphql_api.graphql.schemas.events import (
@@ -23,8 +23,8 @@
2323
from ..utils import find_one
2424

2525

26-
class Tercc(graphene.ObjectType):
27-
"""Tercc link."""
26+
class Terc(graphene.ObjectType):
27+
"""Terc link."""
2828

2929
test_execution_recipe_collection_created = graphene.Field(
3030
TestExecutionRecipeCollectionCreated
@@ -36,7 +36,7 @@ def __init__(self, link):
3636
self.link = link
3737

3838
def resolve_test_execution_recipe_collection_created(self, _):
39-
"""Resolve tercc link."""
39+
"""Resolve terc link."""
4040
from ..union import NotFound # pylint:disable=import-outside-toplevel
4141

4242
event = find_one(

src/eiffel_graphql_api/graphql/schemas/links/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from .runtime_environment import RuntimeEnvironment
3232
from .source_change_base import *
3333
from .subject import Subject
34-
from .tercc import Tercc
34+
from .terc import Terc
3535
from .test_case_execution import *
3636
from .test_suite_execution import *
3737
from .verification_basis import VerificationBasis
@@ -72,5 +72,5 @@
7272
"CHANGE": SourceChange,
7373
"TEST_CASE_EXECUTION": TestCaseExecution,
7474
"TEST_SUITE_EXECUTION": TestSuiteExecution,
75-
"TERCC": Tercc,
75+
"TERC": Terc,
7676
}

src/eiffel_graphql_api/graphql/schemas/union.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class Meta: # pylint: disable=too-few-public-methods
192192
SourceSubmittedPreviousVersion,
193193
TestCaseExecution,
194194
TestSuiteExecution,
195-
Tercc,
195+
Terc,
196196
)
197197

198198

0 commit comments

Comments
 (0)