1
- ## Unreleased
1
+ # Changelog for python-asserts
2
2
3
- ### Incompatible Changes
3
+ python-asserts adheres to [ semantic versioning ] ( https://semver.org/ ) .
4
4
5
- - Drop support for Python 3.7.
5
+ ## [ Unreleased ]
6
6
7
- ## News in asserts 0.12.0
7
+ ### Removed
8
8
9
- ### Incompatible Changes
9
+ - Drop support for Python 3.7.
10
10
11
- - Drop support for Python 3.6.
11
+ ## [ 0.12.0 ]
12
12
13
- ### API Additions
13
+ ### Added
14
14
15
15
- Add ` assert_not_regex() ` .
16
16
17
- ### Other Changes
17
+ ### Changed
18
18
19
19
- Modernize the type stubs.
20
20
21
- ## News in asserts 0.11.1
21
+ ### Removed
22
22
23
- ### API Additions
23
+ - Drop support for Python 3.6.
24
+
25
+ ## [ 0.11.1]
26
+
27
+ ### Added
24
28
25
29
- ` assert_json_subset() ` can now check for the existence or non-existence
26
30
of object members using the new ` Exists ` helper.
27
31
- Non-string (or ` Exists ` ) object member names in the first argument to
28
32
` assert_json_subset() ` now raise a ` TypeError ` .
29
33
30
- ## News in asserts 0.11.0
34
+ ## [ 0.11.0]
31
35
32
- ### API-Incompatible Changes
36
+ ### Removed
33
37
34
38
- Drop support for Python 2.7 and 3.5.
35
39
36
- ## News in asserts 0.10.0
37
-
38
- ### API-Incompatible Changes
40
+ ## [ 0.10.0]
39
41
40
- - Drop support for Python 3.4.
41
-
42
- ### API Additions
42
+ ### Added
43
43
44
44
- ` AssertRaisesContext ` and ` AssertWarnsContext ` now return themselves
45
45
when ` __enter__() ` is called. By extension it now easier to call
@@ -60,67 +60,77 @@ with assert_raises(KeyError) as context:
60
60
assert_equal(" expected message" , str (context.exc_val))
61
61
```
62
62
63
- ## News in asserts 0.9.1
63
+ ### Removed
64
+
65
+ - Drop support for Python 3.4.
64
66
65
- ### Improvements
67
+ ## [ 0.9.1]
68
+
69
+ ### Changed
66
70
67
71
- ` AssertRaisesContext ` and sub-classes are now generic over the
68
72
exception type.
69
73
70
- ## News in asserts 0.9.0
74
+ ## [ 0.9.0]
71
75
72
- ### API Additions
76
+ ### Added
73
77
74
78
- Add ` assert_json_subset() ` .
75
79
76
- ## News in asserts 0.8.6
80
+ ## [ 0.8.6]
77
81
78
- ### Improvements
82
+ ### Added
79
83
80
84
- Add support for Python 3.7 (contributed by Frank Niessink).
81
85
82
- ## News in asserts 0.8.5
86
+ ## [ 0.8.5]
83
87
84
- ### API Additions
88
+ ### Added
85
89
86
90
- Add ` assert_dict_equal() ` .
87
91
- Add ` assert_dict_superset() ` .
88
92
89
- ### Improvements
93
+ ### Changed
90
94
91
95
- ` assert_equal() ` : Use ` assert_dict_equal() ` if applicable.
92
96
93
- ## News in asserts 0.8.4
97
+ ## [ 0.8.4]
94
98
95
- ### Improvements
99
+ ### Changed
96
100
97
101
- ` fail() ` is now marked with ` NoReturn ` in type stub.
98
102
99
- ### Bug Fixes
103
+ ### Fixed
100
104
101
105
- Improve type annotations for Python 2.
102
106
103
- ## News in asserts 0.8.3
107
+ ## [ 0.8.3]
104
108
105
- ### Bug Fixes
109
+ ### Fixed
106
110
107
111
- Fix type signature of ` AssertRaisesContext.__exit__() ` .
108
112
109
- ## News in asserts 0.8.2
113
+ ## [ 0.8.2]
110
114
111
- ### Improvements
115
+ ### Added
112
116
113
117
- Add a py.typed file to signal that this package supports type hints.
114
118
115
- ## News in asserts 0.8.1
119
+ ## [ 0.8.1]
116
120
117
- ### Bug Fixes
121
+ ### Fixed
118
122
119
123
- ` assert_raises_regex() ` : Handle exceptions without any message correctly.
120
124
121
- ## News in asserts 0.8.0
125
+ ## [ 0.8.0]
122
126
123
- ### API-Incompatible Changes
127
+ ### Added
128
+
129
+ - assert_count_equal(): Add ` msg_fmt ` argument.
130
+ - Add AssertRaisesErrnoContext, AssertRaisesRegexContext, and
131
+ AssertWarnsRegexContext.
132
+
133
+ ### Changed
124
134
125
135
- Replace ` msg ` argument with ` msg_fmt ` in all assertions (except ` fail() ` ).
126
136
This allows you to customize error messages more easily than before, because
@@ -131,64 +141,61 @@ assert_equal("expected message", str(context.exc_val))
131
141
- assert_almost_equal(), assert_not_almost_equal(): Place msg_fmt as third
132
142
argument.
133
143
134
- ### API Additions
135
-
136
- - assert_count_equal(): Add ` msg_fmt ` argument.
137
- - Add AssertRaisesErrnoContext, AssertRaisesRegexContext, and
138
- AssertWarnsRegexContext.
144
+ ## [ 0.7.3]
139
145
140
- ## News in asserts 0.7.3
141
-
142
- ### API Additions
146
+ ### Added
143
147
144
148
- Add assert_not_almost_equal().
145
149
146
- ### Improvements
150
+ ### Changed
147
151
148
152
- assert_almost_equal(): Raise ValueError if diff <= 0.
149
153
150
- ### Bug Fixes
154
+ ### Fixed
151
155
152
156
- assert_almost_equal() would never fail if a delta was supplied and the
153
157
second number was smaller than the first.
154
158
- Use fail() instead of raise AssertionError in a few assertions.
155
159
156
- ## News in asserts 0.7.2
160
+ ## [ 0.7.2]
157
161
158
- ### API Additions
162
+ ### Added
159
163
160
164
- Add assert_warns() and assert_warns_regex().
161
165
162
- ## News in asserts 0.7.1
166
+ ## [ 0.7.1]
163
167
164
- - Distribute as wheel.
165
- - asserts is now a package, instead of a module.
168
+ ### Changed
166
169
167
- ## News in asserts 0.7.0
170
+ - Distribute a wheel.
171
+ - asserts is now a package, instead of a module.
168
172
169
- - Add a stub file.
173
+ ## [ 0.7.0 ]
170
174
171
- ### API Additions
175
+ ### Added
172
176
177
+ - Add a stub file.
173
178
- Add assert_count_equal().
174
179
175
- ## News in asserts 0.6
180
+ ## [ 0.6]
176
181
177
- ### API Additions
182
+ ### Added
178
183
179
184
- Add assert_less(), assert_less_equal(), assert_greater(), and
180
185
assert_greater_equal().
181
186
- Add assert_not_is_instance().
182
187
183
- ### Improvements
188
+ ### Changed
184
189
185
190
- assert_datetime_about_now()/assert_datetime_about_now_utc(): Handle
186
191
comparison with None more gracefully.
187
192
188
- ## News in asserts 0.5.1
193
+ ## [ 0.5.1]
194
+
195
+ ### Added
189
196
190
197
- Add the LICENSE file to the distribution.
191
198
192
- ## News in asserts 0.5
199
+ ## [ 0.5]
193
200
194
201
Initial release.
0 commit comments