Skip to content

Commit

Permalink
Preparing to create tag 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenvp committed Feb 15, 2024
1 parent c378ff5 commit 79e8cab
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Latest
------
* tbd

1.7.0
-----
* Minor: Added more context to the DataRecorderError exception.

1.6.0
-----
* Minor: Added access to the user_error on the exception object
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
with io.open(os.path.join(cwd, "README.rst"), encoding="utf-8") as fd:
long_description = fd.read()

VERSION = "1.6.0"
VERSION = "1.7.0"

setup(
name="pytest-datarecorder",
Expand Down
6 changes: 6 additions & 0 deletions src/pytest_datarecorder/datarecorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ def __init__(
# Make sure we can ass only the user error if we want
self.user_error = user_error

self.mismatch_data = mismatch_data
self.mismatch_file = mismatch_file
self.recording_data = recording_data
self.recording_file = recording_file
self.mismatch_dir = mismatch_dir

super(DataRecorderError, self).__init__(result)


Expand Down
5 changes: 5 additions & 0 deletions test/test_datarecorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,8 @@ def on_mismatch(mismatch_data, recording_data, mismatch_dir, mismatch_context):
)

assert e.user_error == "Data mismatch"
assert e.mismatch_data is not None
assert e.mismatch_file is not None
assert e.recording_data is not None
assert e.recording_file is not None
assert e.mismatch_dir == mismatch_dir.path()
2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import waflib

top = "."

VERSION = "1.6.0"
VERSION = "1.7.0"


class UploadContext(BuildContext):
Expand Down

0 comments on commit 79e8cab

Please sign in to comment.