Skip to content

Commit

Permalink
tests/pyright: Fix wording on expected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
noelleleigh committed Oct 22, 2024
1 parent 3947852 commit e6ccada
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/pyright/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Foo(models.Model):
),
Result(
type="error",
message='Cannot assign to attribute "array" for class "Foo"',
message='Cannot assign member "array" for type "Foo"',
line=13,
column=3,
),
Expand Down Expand Up @@ -82,7 +82,7 @@ class Foo(models.Model):
),
Result(
type="error",
message='Cannot assign to attribute "array" for class "Foo"',
message='Cannot assign member "array" for type "Foo"',
line=15,
column=3,
),
Expand Down Expand Up @@ -133,7 +133,7 @@ class Foo(models.Model):
),
Result(
type="error",
message='Cannot assign to attribute "array" for class "Foo"',
message='Cannot assign member "array" for type "Foo"',
line=18,
column=3,
),
Expand Down Expand Up @@ -197,7 +197,7 @@ class Foo(models.Model):
),
Result(
type="error",
message='Cannot assign to attribute "array" for class "Foo"',
message='Cannot assign member "array" for type "Foo"',
line=19,
column=3,
),
Expand Down
4 changes: 2 additions & 2 deletions tests/pyright/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Foo(models.Model):
),
Result(
type="error",
message='Cannot assign to attribute "integer_with_choices" for class "Foo"',
message='Cannot assign member "integer_with_choices" for type "Foo"',
line=15,
column=3,
),
Expand Down Expand Up @@ -103,7 +103,7 @@ class Foo(models.Model):
),
Result(
type="error",
message='Cannot assign to attribute "char_with_choices" for class "Foo"',
message='Cannot assign member "char_with_choices" for type "Foo"',
line=15,
column=3,
),
Expand Down

0 comments on commit e6ccada

Please sign in to comment.