Skip to content

Fix a bug that occurs when specifying TERC links in TSS #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/eiffel_graphql_api/graphql/schemas/links/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .runtime_environment import RuntimeEnvironment
from .source_change_base import *
from .subject import Subject
from .tercc import Tercc
from .terc import Terc
from .test_case_execution import *
from .test_suite_execution import *
from .verification_basis import VerificationBasis
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Resolve tercc link."""
"""Resolve terc link."""
import graphene

from eiffel_graphql_api.graphql.schemas.events import (
Expand All @@ -23,8 +23,8 @@
from ..utils import find_one


class Tercc(graphene.ObjectType):
"""Tercc link."""
class Terc(graphene.ObjectType):
"""Terc link."""

test_execution_recipe_collection_created = graphene.Field(
TestExecutionRecipeCollectionCreated
Expand All @@ -36,7 +36,7 @@ def __init__(self, link):
self.link = link

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

event = find_one(
Expand Down
4 changes: 2 additions & 2 deletions src/eiffel_graphql_api/graphql/schemas/links/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .runtime_environment import RuntimeEnvironment
from .source_change_base import *
from .subject import Subject
from .tercc import Tercc
from .terc import Terc
from .test_case_execution import *
from .test_suite_execution import *
from .verification_basis import VerificationBasis
Expand Down Expand Up @@ -72,5 +72,5 @@
"CHANGE": SourceChange,
"TEST_CASE_EXECUTION": TestCaseExecution,
"TEST_SUITE_EXECUTION": TestSuiteExecution,
"TERCC": Tercc,
"TERC": Terc,
}
2 changes: 1 addition & 1 deletion src/eiffel_graphql_api/graphql/schemas/union.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class Meta: # pylint: disable=too-few-public-methods
SourceSubmittedPreviousVersion,
TestCaseExecution,
TestSuiteExecution,
Tercc,
Terc,
)


Expand Down