Skip to content

Commit

Permalink
chore: Remove unused TestResult.overridden_headers attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Oct 17, 2023
1 parent e74fa64 commit 8ea9833
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ After:
**Removed**

- Unused ``SerializedError.example`` attribute. It used to be populated for flaky errors before they became regular failures.
- Unused ``TestResult.overridden_headers`` attribute.

.. _v3.19.7:

Expand Down
3 changes: 0 additions & 3 deletions src/schemathesis/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,9 +1006,6 @@ class TestResult:
is_skipped: bool = False
is_executed: bool = False
seed: Optional[int] = None
# To show a proper reproduction code if an error happens and there is no way to get actual headers that were
# sent over the network. Or there could be no actual requests at all
overridden_headers: Optional[Dict[str, Any]] = None

def mark_errored(self) -> None:
self.is_errored = True
Expand Down
1 change: 0 additions & 1 deletion src/schemathesis/runner/impl/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ def run_test(
method=operation.method.upper(),
path=operation.full_path,
verbose_name=operation.verbose_name,
overridden_headers=headers,
data_generation_method=data_generation_methods,
)
# To simplify connecting `before` and `after` events in external systems
Expand Down
1 change: 0 additions & 1 deletion test/runner/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ def result():
method="POST",
path="/users/",
verbose_name="POST /users/",
overridden_headers=None,
data_generation_method=DataGenerationMethod.positive,
)

Expand Down

0 comments on commit 8ea9833

Please sign in to comment.