Skip to content

Commit

Permalink
use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkroner committed Jul 23, 2024
1 parent d7ffda8 commit 873cbe9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ class SomethingWithAVersion(BaseModel):


def test_valid_semver() -> None:
SomethingWithAVersion(version="1.2.3")
SomethingWithAVersion(version='1.2.3')


def test_valid_semver_with_prerelease() -> None:
SomethingWithAVersion(version="1.2.3-alpha.1")
SomethingWithAVersion(version='1.2.3-alpha.1')


def test_invalid_semver() -> None:
with pytest.raises(ValueError):
SomethingWithAVersion(version="jim.was.here")
SomethingWithAVersion(version='jim.was.here')


def test_json_schema() -> None:
assert SomethingWithAVersion.model_json_schema() == {
"properties": {"version": {"title": "Version", "type": "string"}},
"required": ["version"],
"title": "SomethingWithAVersion",
"type": "object",
'properties': {'version': {'title': 'Version', 'type': 'string'}},
'required': ['version'],
'title': 'SomethingWithAVersion',
'type': 'object',
}

0 comments on commit 873cbe9

Please sign in to comment.