Skip to content

Fix test class name #127

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 2 commits into from
Jan 11, 2022
Merged
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
18 changes: 9 additions & 9 deletions tests/integration/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from openapi_spec_validator.exceptions import OpenAPIValidationError


class BaseTestValidOpeAPIv3Validator(object):
class BaseTestValidOpenAPIv3Validator(object):

@pytest.fixture
def spec_url(self):
Expand All @@ -13,7 +13,7 @@ def test_valid(self, validator, spec, spec_url):
return validator.validate(spec, spec_url=spec_url)


class BaseTestFailedOpeAPIv3Validator(object):
class BaseTestFailedOpenAPIv3Validator(object):

@pytest.fixture
def spec_url(self):
Expand All @@ -24,21 +24,21 @@ def test_failed(self, validator, spec, spec_url):
validator.validate(spec, spec_url=spec_url)


class TestLocalEmptyExample(BaseTestFailedOpeAPIv3Validator):
class TestLocalEmptyExample(BaseTestFailedOpenAPIv3Validator):

@pytest.fixture
def spec(self, factory):
return factory.spec_from_file("data/v3.0/empty.yaml")


class TestLocalPetstoreExample(BaseTestValidOpeAPIv3Validator):
class TestLocalPetstoreExample(BaseTestValidOpenAPIv3Validator):

@pytest.fixture
def spec(self, factory):
return factory.spec_from_file("data/v3.0/petstore.yaml")


class TestLocalPetstoreSeparateExample(BaseTestValidOpeAPIv3Validator):
class TestLocalPetstoreSeparateExample(BaseTestValidOpenAPIv3Validator):

spec_file = "data/v3.0/petstore-separate/spec/openapi.yaml"

Expand All @@ -51,7 +51,7 @@ def spec(self, factory):
return factory.spec_from_file(self.spec_file)


class TestLocalParentReferenceExample(BaseTestValidOpeAPIv3Validator):
class TestLocalParentReferenceExample(BaseTestValidOpenAPIv3Validator):

spec_file = "data/v3.0/parent-reference/openapi.yaml"

Expand All @@ -64,7 +64,7 @@ def spec(self, factory):
return factory.spec_from_file(self.spec_file)


class TestPetstoreExample(BaseTestValidOpeAPIv3Validator):
class TestPetstoreExample(BaseTestValidOpenAPIv3Validator):

@pytest.fixture
def spec(self, factory):
Expand All @@ -76,7 +76,7 @@ def spec(self, factory):
return factory.spec_from_url(url)


class TestApiWithExampe(BaseTestValidOpeAPIv3Validator):
class TestApiWithExample(BaseTestValidOpenAPIv3Validator):

@pytest.fixture
def spec(self, factory):
Expand All @@ -88,7 +88,7 @@ def spec(self, factory):
return factory.spec_from_url(url)


class TestPetstoreExpandedExample(BaseTestValidOpeAPIv3Validator):
class TestPetstoreExpandedExample(BaseTestValidOpenAPIv3Validator):

@pytest.fixture
def spec(self, factory):
Expand Down