Skip to content

Commit

Permalink
Lower coverage req = try fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Oct 7, 2023
1 parent f5088d6 commit e79a23d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pipelines/requirements/coverage.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
coverage==7.3.2
coverage==7.2.7
18 changes: 9 additions & 9 deletions tests/test_generation/test_partial_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def generator() -> None: # mark: filedef

User.create_partial('UserOnlyName', include={'name'})

Post.create_partial('PostWithoutDesc', exclude=['desc']) # type: ignore
Post.create_partial('PostWithoutDesc', exclude=['desc']) # pyright: ignore
Post.create_partial('PostOptionalPublished', optional=['published'])
Post.create_partial('PostRequiredDesc', required=['desc']) # type: ignore
Post.create_partial('PostRequiredDesc', required=['desc']) # pyright: ignore
Post.create_partial('PostOnlyId', include={'id'})
Post.create_partial(
'PostOptionalInclude', include={'title'}, optional={'title'}
Expand All @@ -336,10 +336,10 @@ def generator() -> None: # mark: filedef

User.create_partial(
'UserModifiedPosts',
exclude={'bytes', 'bytes_list'}, # type: ignore
exclude={'bytes', 'bytes_list'}, # pyright: ignore
relations={'posts': 'PostOnlyId'},
)
User.create_partial('UserBytesList', include={'bytes', 'bytes_list'}) # type: ignore
User.create_partial('UserBytesList', include={'bytes', 'bytes_list'}) # pyright: ignore

testdir.make_from_function(generator, name=location)
testdir.generate(SCHEMA, options)
Expand Down Expand Up @@ -381,9 +381,9 @@ def generator() -> None: # mark: filedef

Post.create_partial(
'PostPartial',
required={'desc', 'published', 'title'}, # type: ignore
required={'desc', 'published', 'title'}, # pyright: ignore
optional={
'desc', # type: ignore
'desc', # pyright: ignore
'published',
},
)
Expand All @@ -406,9 +406,9 @@ def generator() -> None: # mark: filedef

Post.create_partial(
'PostPartial',
exclude={'desc'}, # type: ignore
exclude={'desc'}, # pyright: ignore
required={
'desc', # type: ignore
'desc', # pyright: ignore
},
)

Expand Down Expand Up @@ -472,7 +472,7 @@ def generator() -> None: # mark: filedef
for _ in range(2):
Post.create_partial(
'PostPartial',
exclude={'desc'}, # type: ignore
exclude={'desc'}, # pyright: ignore
)

testdir.make_from_function(generator, name='prisma/partial_types.py')
Expand Down

0 comments on commit e79a23d

Please sign in to comment.