Skip to content

Commit

Permalink
ref: fix erroneous project= passed to ProjectTemplate (#75111)
Browse files Browse the repository at this point in the history
once models are checked mypy notices that the `project=` argument goes
nowhere here. I'm surprised this works at runtime tbh

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jul 29, 2024
1 parent 7950cbd commit 4c3128d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/sentry/projectoptions/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def test_project_template_options(default_project):
assert default_project.get_option("test_option") == "default"

template = ProjectTemplate.objects.create(
name="Test Template",
organization=default_project.organization,
project=default_project,
name="Test Template", organization=default_project.organization
)

default_project.template = template
Expand Down

0 comments on commit 4c3128d

Please sign in to comment.