Verified Commit 048f3ce0 authored by Peter Stanko's avatar Peter Stanko
Browse files

Fixed tests

parent 42e20272
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ class DataFactory(object):
        return entity

    def create_component(self, name: str, secret: str = None, component_type: str = 'executor',
                         ip_addr: str = '0.0.0.0', notes: str = None) -> Component:
                         ip_addr: str = '127.0.0.1', notes: str = None) -> Component:
        secret = secret or f"{name}_secret"
        notes = notes or f"Component {name} of type {type}"
        return self.__create_entity(Component, name=name, secret=secret,
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class ComponentList(Resource):
        data = rest_helpers.parse_request_data(
            component_schema, action='create', resource='component'
        )
        new_component = create_component(data)
        new_component = create_component(**data)
        return component_schema.dump(new_component)[0], 201


+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ class CourseList(Resource):
            raise ForbiddenError(uid=client.id)

        data = rest_helpers.parse_request_data(course_schema, resource='course', action='create')
        new_course = create_course(data)
        new_course = create_course(**data)
        return course_schema.dump(new_course)[0], 201


+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ class GroupsList(Resource):
            group_schema, action='create', resource='group'
        )

        new_group = create_group(course, data)
        new_group = create_group(course, **data)
        return group_schema.dump(new_group)[0], 201


+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ class RoleList(Resource):
        data = rest_helpers.parse_request_data(
            role_schema, action='create', resource='role'
        )
        new_role = create_role(course, data)
        new_role = create_role(course, **data)
        return role_schema.dump(new_role)[0], 201


Loading