Skip to content

Commit 15bb296

Browse files
committed
test: update changelog tests to use new repository and tag references
1 parent 8c82f71 commit 15bb296

File tree

1 file changed

+70
-43
lines changed

1 file changed

+70
-43
lines changed

updater/tests/get-changelog.Tests.ps1

Lines changed: 70 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -262,20 +262,19 @@ Features, fixes and improvements in this release have been contributed by:
262262
It 'falls back to git commits when no changelog files exist' {
263263
# Test with a repository that doesn't have changelog files
264264
$actual = & "$PSScriptRoot/../scripts/get-changelog.ps1" `
265-
-RepoUrl 'https://github.com/catchorg/Catch2' -OldTag 'v3.9.1' -NewTag 'v3.10.0'
265+
-RepoUrl 'https://github.com/getsentry/responses.git' -OldTag '0.7.0' -NewTag '0.8.0'
266266

267267
$expected = @'
268268
## Changelog
269269
270-
### Commits between v3.9.1 and v3.10.0
270+
### Commits between 0.7.0 and 0.8.0
271271
272-
- Forbid deducing reference types for m_predicate in FilterGenerator ([#3005](https://github-redirect.dependabot.com/catchorg/Catch2/issues/3005))
273-
- Make message macros (FAIL, WARN, INFO, etc) thread safe
274-
- Improve performance of writing XML
275-
- Improve performance of writing JSON values
276-
- Don't add / to start of pkg-config file path when DESTDIR is unset
277-
- Fix color mode detection on FreeBSD by adding platform macro
278-
- Handle DESTDIR env var when generating pkgconfig files
272+
- Note passthru changes
273+
- Add support for removing and replacing existing mocked URLs
274+
- Add support for removing and replacing existing mocked URLs
275+
- Use inspect.getfullargspec() in Python 3
276+
- ci: add codecov dep
277+
- Changes for 0.7.0
279278
'@
280279

281280
$actual | Should -Be $expected
@@ -284,21 +283,40 @@ Features, fixes and improvements in this release have been contributed by:
284283
It 'git commit fallback handles PR references correctly' {
285284
# Test with a known repository and tags that contain PR references
286285
$actual = & "$PSScriptRoot/../scripts/get-changelog.ps1" `
287-
-RepoUrl 'https://github.com/catchorg/Catch2' -OldTag 'v3.9.1' -NewTag 'v3.10.0'
286+
-RepoUrl 'https://github.com/getsentry/responses.git' -OldTag '0.8.0' -NewTag '0.9.0'
288287

289-
# This test verifies the same content as the main test, but focuses on PR link formatting
288+
# This test verifies PR link formatting in commit messages
290289
$expected = @'
291290
## Changelog
292291
293-
### Commits between v3.9.1 and v3.10.0
294-
295-
- Forbid deducing reference types for m_predicate in FilterGenerator ([#3005](https://github-redirect.dependabot.com/catchorg/Catch2/issues/3005))
296-
- Make message macros (FAIL, WARN, INFO, etc) thread safe
297-
- Improve performance of writing XML
298-
- Improve performance of writing JSON values
299-
- Don't add / to start of pkg-config file path when DESTDIR is unset
300-
- Fix color mode detection on FreeBSD by adding platform macro
301-
- Handle DESTDIR env var when generating pkgconfig files
292+
### Commits between 0.8.0 and 0.9.0
293+
294+
- Update CHANGES for 0.9.0
295+
- Merge pull request [#196](https://github-redirect.dependabot.com/getsentry/responses.git/issues/196) from getsentry/fix/python-37
296+
- fix: Adapt to re.Pattern in Python 3.7
297+
- test: Correct paths to artifacts
298+
- test: Correct paths to artifacts
299+
- test: Add Zeus
300+
- Merge pull request [#192](https://github-redirect.dependabot.com/getsentry/responses.git/issues/192) from xmo-odoo/patch-1
301+
- force rebuild
302+
- Merge pull request [#189](https://github-redirect.dependabot.com/getsentry/responses.git/issues/189) from wimglenn/issue_188
303+
- Add stream attribute to BaseResponse
304+
- add 3.5 support
305+
- add support for custom patch target
306+
- Merge pull request [#187](https://github-redirect.dependabot.com/getsentry/responses.git/issues/187) from rmad17/master
307+
- Update README.rst
308+
- Adding installing section
309+
- Merge pull request [#181](https://github-redirect.dependabot.com/getsentry/responses.git/issues/181) from feliperuhland/master
310+
- Merge pull request [#178](https://github-redirect.dependabot.com/getsentry/responses.git/issues/178) from kathawala/unicode_passthru
311+
- Fix README examples with import of requests library
312+
- Satisfy linter
313+
- Better test which doesn't rely on external requests
314+
- Add unicode support for passthru urls
315+
- Add support for unicode in domain names and tlds ([#177](https://github-redirect.dependabot.com/getsentry/responses.git/issues/177))
316+
- Attempt to satisfy linter
317+
- All tests passed for fixing issue [#175](https://github-redirect.dependabot.com/getsentry/responses.git/issues/175)
318+
- Adds unicode handling to BaseRequest init, fixes issue [#175](https://github-redirect.dependabot.com/getsentry/responses.git/issues/175)
319+
- fix: Maintain 'method' param on 'add'
302320
'@
303321

304322
$actual | Should -Be $expected
@@ -307,40 +325,49 @@ Features, fixes and improvements in this release have been contributed by:
307325
It 'git commit fallback returns empty when no commits found' {
308326
# Test with same tags (no commits between them)
309327
$actual = & "$PSScriptRoot/../scripts/get-changelog.ps1" `
310-
-RepoUrl 'https://github.com/catchorg/Catch2' -OldTag 'v3.10.0' -NewTag 'v3.10.0'
328+
-RepoUrl 'https://github.com/getsentry/responses.git' -OldTag '0.9.0' -NewTag '0.9.0'
311329

312330
$actual | Should -BeNullOrEmpty
313331
}
314332

315333
It 'git commit fallback filters out version tag commits' {
316-
# Test that version commits like "v3.10.0" are filtered out
334+
# Test that version commits like "0.8.0" are filtered out
317335
$actual = & "$PSScriptRoot/../scripts/get-changelog.ps1" `
318-
-RepoUrl 'https://github.com/catchorg/Catch2' -OldTag 'v3.9.0' -NewTag 'v3.10.0'
336+
-RepoUrl 'https://github.com/getsentry/responses.git' -OldTag '0.6.0' -NewTag '0.8.0'
319337

320338
# Expected output should not contain version tag commits but should have meaningful commits
321-
# This range includes v3.9.1 and v3.10.0 version commits that should be filtered out
339+
# This range includes version commits that should be filtered out
322340
$expected = @'
323341
## Changelog
324342
325-
### Commits between v3.9.0 and v3.10.0
326-
327-
- Forbid deducing reference types for m_predicate in FilterGenerator ([#3005](https://github-redirect.dependabot.com/catchorg/Catch2/issues/3005))
328-
- Make message macros (FAIL, WARN, INFO, etc) thread safe
329-
- Improve performance of writing XML
330-
- Improve performance of writing JSON values
331-
- Don't add / to start of pkg-config file path when DESTDIR is unset
332-
- Fix color mode detection on FreeBSD by adding platform macro
333-
- Handle DESTDIR env var when generating pkgconfig files
334-
- Add tests for comparing & stringifying volatile pointers
335-
- Refactor CATCH_TRAP selection logic to prefer compiler-specific impls
336-
- Update generators.md
337-
- Cleanup WIP changes from last commit
338-
- Catch exceptions from StringMakers inside Detail::stringify
339-
- Fix StringMaker for time_point<system_clock> with non-default duration
340-
- Fix warning in `catch_unique_ptr::bool()`
341-
- Add enum types to what is captured by value by default
342-
- Don't follow __assume(false) with std::terminate in NDEBUG builds
343-
- Fix bad error reporting for nested exceptions in default configuration
343+
### Commits between 0.6.0 and 0.8.0
344+
345+
- Note passthru changes
346+
- Add support for removing and replacing existing mocked URLs
347+
- Add support for removing and replacing existing mocked URLs
348+
- Use inspect.getfullargspec() in Python 3
349+
- ci: add codecov dep
350+
- Changes for 0.7.0
351+
- Change behavior for multiple matches per PR comment
352+
- Issue [#170](https://github-redirect.dependabot.com/getsentry/responses.git/issues/170): Fix bug with handling multiple matches
353+
- ci: add codecov
354+
- test: multiple urls same domain (refs GH-170)
355+
- Changes for 0.6.2
356+
- compare query params length if match_querystring is set
357+
- fix: ensuring default path if match_querystring is set
358+
- update multiple responses example in README.rst
359+
- fix: fix multiple responses
360+
- fix: count mocked errors in RequestsMock
361+
- fix: allow returning arbitrary status codes
362+
- Changes for 0.6.1
363+
- Update README.rst
364+
- drop support for Python 2.6
365+
- travis: dont setup pre-commit
366+
- pre-commit 0.16.0
367+
- fix: restore adding_headers compatibility
368+
- missing change refs
369+
- Merge branch 'feature/do_not_remove_urls_when_assert_all_requests_are_fired' of https://github.com/j0hnsmith/responses into j0hnsmith-feature/do_not_remove_urls_when_assert_all_requests_are_fired
370+
- The only change in behaviour when setting `assert_all_requests_are_fired=True` should be the expected assertion.
344371
'@
345372

346373
$actual | Should -Be $expected

0 commit comments

Comments
 (0)