Skip to content

Commit

Permalink
Remove bdd tests for use_dynamo_category (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 committed May 31, 2023
1 parent 87a1dd8 commit 3eef4be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
35 changes: 0 additions & 35 deletions backend/bdd_tests/scenarios/category.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,3 @@ Feature: Category
Given we call categories api for foo with version bar
Then response status is 200
And it will have empty list as response

Scenario: get all categories and use_dynamo_category=true
Given we call categories api and use_dynamo_category=true
Then response status is 200
And it will have valid all categories response

Scenario: get valid category and use_dynamo_category=true
Given we call categories api for Cell tracking and use_dynamo_category=true
Then response status is 200
And it will have valid category response

Scenario: get invalid category and use_dynamo_category=true
Given we call categories api for foo and use_dynamo_category=true
Then response status is 200
And it will have empty list as response

Scenario: get valid category with valid version and use_dynamo_category=true
Given we call categories api for Cell segmentation with version EDAM-BIOIMAGING:alpha06 and use_dynamo_category=true
Then response status is 200
And it will have valid category response

Scenario: get invalid category with valid version and use_dynamo_category=true
Given we call categories api for foo with version EDAM-BIOIMAGING:alpha06 and use_dynamo_category=true
Then response status is 200
And it will have empty list as response

Scenario: get valid category with invalid version and use_dynamo_category=true
Given we call categories api for Cell segmentation with version foo and use_dynamo_category=true
Then response status is 200
And it will have empty list as response

Scenario: get invalid category with invalid version and use_dynamo_category=true
Given we call categories api for foo with version bar and use_dynamo_category=true
Then response status is 200
And it will have empty list as response
15 changes: 0 additions & 15 deletions backend/bdd_tests/test_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,18 @@ def call_all_categories(context):
call_api(context, '/categories')


@given(parsers.parse('we call categories api and {query_param}'))
def call_all_categories_with_query_param(context, query_param):
call_api(context, f'/categories?{query_param}')


@given(parsers.parse('we call categories api for {category} with version {version}'))
def call_category_with_version(category, version, context):
context['category_name'] = category
call_api(context, f'/categories/{category}/versions/{version}')

@given(parsers.parse('we call categories api for {category} with version {version} and {query_param}'))
def call_category_with_version_and_query_param(category, version, context, query_param):
context['category_name'] = category
call_api(context, f'/categories/{category}/versions/{version}?{query_param}')

@given(parsers.parse('we call categories api for {category}'))
def call_category_without_version(context, category):
context['category_name'] = category
call_api(context, f'/categories/{category}')


@given(parsers.parse('we call categories api for {category} and {query_param}'))
def call_category_without_version_and_query_param(context, category, query_param):
context['category_name'] = category
call_api(context, f'/categories/{category}?{query_param}')


def _validate_category(category, name):
for item in category:
assert item['dimension'] in {'Supported data', 'Image modality', 'Workflow step'}
Expand Down

0 comments on commit 3eef4be

Please sign in to comment.