Skip to content

Commit 7d559be

Browse files
committed
Update to 0.2.7. From the changelog:
- Run tests on Python 3.8 - Get Windows CRLF line endings into VerifyTests.test_verify_file_with_windows_1252_encoding.approved.txt - Rename testFile.txt to exampleFile.txt to prevent the test framework needlessly attempting to load it as source code - Add handling of text encoding (issue #50), line endings (issue #62), and generally improve flexibility for handling multiple platforms - Add PyTestNamer which uses the 'request' fixture to discover all needed info - Re-distribute functionality between Namer and StackFrameNamer to make it easier to subclass - Split Namer into two classes - added subclass StackFrameNamer - Added ScenarioNamer for use with Parameterized tests. - Improve the documentation for users of pytest, and for developers - Fix crash when namer was configured to use a directory that didn't exist - Add 'verify_xml' function and associated test case
1 parent 5c496df commit 7d559be

3 files changed

Lines changed: 68 additions & 59 deletions

File tree

devel/py-approvaltests/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# $NetBSD: Makefile,v 1.1 2020/04/20 14:37:46 schmonz Exp $
1+
# $NetBSD: Makefile,v 1.2 2020/11/01 13:52:43 schmonz Exp $
22

33
GITHUB_PROJECT= ApprovalTests.Python
4-
GITHUB_TAG= 0.2.6
5-
DISTNAME= 0.2.6
4+
GITHUB_TAG= 0.2.7
5+
DISTNAME= 0.2.7
66
PKGNAME= ${PYPKGPREFIX}-approvaltests-${DISTNAME}
77
CATEGORIES= devel python
88
MASTER_SITES= ${MASTER_SITE_GITHUB:=approvals/}
@@ -15,7 +15,7 @@ LICENSE= apache-2.0
1515

1616
DEPENDS+= ${PYPKGPREFIX}-pyperclip>=1.5.27:../../x11/py-pyperclip
1717

18-
WRKSRC= ${WRKDIR}/ApprovalTests.Python-0.2.6
18+
WRKSRC= ${WRKDIR}/ApprovalTests.Python-${GITHUB_TAG}
1919
USE_LANGUAGES= # none
2020

2121
.include "../../lang/python/egg.mk"

devel/py-approvaltests/PLIST

Lines changed: 59 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,94 @@
1-
@comment $NetBSD: PLIST,v 1.1 2020/04/20 14:37:46 schmonz Exp $
1+
@comment $NetBSD: PLIST,v 1.2 2020/11/01 13:52:43 schmonz Exp $
22
${PYSITELIB}/approvaltests-${EGG_INFODIR}/PKG-INFO
33
${PYSITELIB}/approvaltests-${EGG_INFODIR}/SOURCES.txt
44
${PYSITELIB}/approvaltests-${EGG_INFODIR}/dependency_links.txt
55
${PYSITELIB}/approvaltests-${EGG_INFODIR}/requires.txt
66
${PYSITELIB}/approvaltests-${EGG_INFODIR}/top_level.txt
77
${PYSITELIB}/approvaltests/__init__.py
8-
${PYSITELIB}/approvaltests/__init__.pyo
98
${PYSITELIB}/approvaltests/__init__.pyc
10-
${PYSITELIB}/approvaltests/approval_exception.pyo
11-
${PYSITELIB}/approvaltests/approval_exception.pyc
12-
${PYSITELIB}/approvaltests/approvals.pyo
13-
${PYSITELIB}/approvaltests/approvals.pyc
14-
${PYSITELIB}/approvaltests/asserts.pyo
15-
${PYSITELIB}/approvaltests/asserts.pyc
16-
${PYSITELIB}/approvaltests/combination_approvals.pyo
17-
${PYSITELIB}/approvaltests/combination_approvals.pyc
18-
${PYSITELIB}/approvaltests/command.pyo
19-
${PYSITELIB}/approvaltests/command.pyc
20-
${PYSITELIB}/approvaltests/file_approver.pyo
21-
${PYSITELIB}/approvaltests/file_approver.pyc
22-
${PYSITELIB}/approvaltests/list_utils.pyo
23-
${PYSITELIB}/approvaltests/list_utils.pyc
24-
${PYSITELIB}/approvaltests/reporter_missing_exception.pyo
25-
${PYSITELIB}/approvaltests/reporter_missing_exception.pyc
26-
${PYSITELIB}/approvaltests/string_writer.pyo
27-
${PYSITELIB}/approvaltests/string_writer.pyc
28-
${PYSITELIB}/approvaltests/utils.pyo
29-
${PYSITELIB}/approvaltests/utils.pyc
30-
${PYSITELIB}/approvaltests/version.pyo
31-
${PYSITELIB}/approvaltests/version.pyc
9+
${PYSITELIB}/approvaltests/__init__.pyo
3210
${PYSITELIB}/approvaltests/approval_exception.py
11+
${PYSITELIB}/approvaltests/approval_exception.pyc
12+
${PYSITELIB}/approvaltests/approval_exception.pyo
3313
${PYSITELIB}/approvaltests/approvals.py
14+
${PYSITELIB}/approvaltests/approvals.pyc
15+
${PYSITELIB}/approvaltests/approvals.pyo
3416
${PYSITELIB}/approvaltests/asserts.py
17+
${PYSITELIB}/approvaltests/asserts.pyc
18+
${PYSITELIB}/approvaltests/asserts.pyo
3519
${PYSITELIB}/approvaltests/combination_approvals.py
20+
${PYSITELIB}/approvaltests/combination_approvals.pyc
21+
${PYSITELIB}/approvaltests/combination_approvals.pyo
3622
${PYSITELIB}/approvaltests/command.py
23+
${PYSITELIB}/approvaltests/command.pyc
24+
${PYSITELIB}/approvaltests/command.pyo
3725
${PYSITELIB}/approvaltests/core/__init__.py
38-
${PYSITELIB}/approvaltests/core/__init__.pyo
3926
${PYSITELIB}/approvaltests/core/__init__.pyc
40-
${PYSITELIB}/approvaltests/core/namer.pyo
41-
${PYSITELIB}/approvaltests/core/namer.pyc
42-
${PYSITELIB}/approvaltests/core/reporter.pyo
43-
${PYSITELIB}/approvaltests/core/reporter.pyc
44-
${PYSITELIB}/approvaltests/core/writer.pyo
45-
${PYSITELIB}/approvaltests/core/writer.pyc
27+
${PYSITELIB}/approvaltests/core/__init__.pyo
4628
${PYSITELIB}/approvaltests/core/namer.py
29+
${PYSITELIB}/approvaltests/core/namer.pyc
30+
${PYSITELIB}/approvaltests/core/namer.pyo
4731
${PYSITELIB}/approvaltests/core/reporter.py
32+
${PYSITELIB}/approvaltests/core/reporter.pyc
33+
${PYSITELIB}/approvaltests/core/reporter.pyo
34+
${PYSITELIB}/approvaltests/core/scenario_namer.py
35+
${PYSITELIB}/approvaltests/core/scenario_namer.pyc
36+
${PYSITELIB}/approvaltests/core/scenario_namer.pyo
4837
${PYSITELIB}/approvaltests/core/writer.py
38+
${PYSITELIB}/approvaltests/core/writer.pyc
39+
${PYSITELIB}/approvaltests/core/writer.pyo
4940
${PYSITELIB}/approvaltests/file_approver.py
41+
${PYSITELIB}/approvaltests/file_approver.pyc
42+
${PYSITELIB}/approvaltests/file_approver.pyo
5043
${PYSITELIB}/approvaltests/list_utils.py
44+
${PYSITELIB}/approvaltests/list_utils.pyc
45+
${PYSITELIB}/approvaltests/list_utils.pyo
46+
${PYSITELIB}/approvaltests/pytest/__init__.py
47+
${PYSITELIB}/approvaltests/pytest/__init__.pyc
48+
${PYSITELIB}/approvaltests/pytest/__init__.pyo
49+
${PYSITELIB}/approvaltests/pytest/namer.py
50+
${PYSITELIB}/approvaltests/pytest/namer.pyc
51+
${PYSITELIB}/approvaltests/pytest/namer.pyo
5152
${PYSITELIB}/approvaltests/reporter_missing_exception.py
53+
${PYSITELIB}/approvaltests/reporter_missing_exception.pyc
54+
${PYSITELIB}/approvaltests/reporter_missing_exception.pyo
5255
${PYSITELIB}/approvaltests/reporters/__init__.py
53-
${PYSITELIB}/approvaltests/reporters/__init__.pyo
5456
${PYSITELIB}/approvaltests/reporters/__init__.pyc
55-
${PYSITELIB}/approvaltests/reporters/clipboard_reporter.pyo
56-
${PYSITELIB}/approvaltests/reporters/clipboard_reporter.pyc
57-
${PYSITELIB}/approvaltests/reporters/diff_reporter.pyo
58-
${PYSITELIB}/approvaltests/reporters/diff_reporter.pyc
59-
${PYSITELIB}/approvaltests/reporters/first_working_reporter.pyo
60-
${PYSITELIB}/approvaltests/reporters/first_working_reporter.pyc
61-
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.pyo
62-
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.pyc
63-
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.pyo
64-
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.pyc
65-
${PYSITELIB}/approvaltests/reporters/multi_reporter.pyo
66-
${PYSITELIB}/approvaltests/reporters/multi_reporter.pyc
67-
${PYSITELIB}/approvaltests/reporters/python_native_reporter.pyo
68-
${PYSITELIB}/approvaltests/reporters/python_native_reporter.pyc
69-
${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.pyo
70-
${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.pyc
71-
${PYSITELIB}/approvaltests/reporters/testing_reporter.pyo
72-
${PYSITELIB}/approvaltests/reporters/testing_reporter.pyc
57+
${PYSITELIB}/approvaltests/reporters/__init__.pyo
7358
${PYSITELIB}/approvaltests/reporters/clipboard_reporter.py
59+
${PYSITELIB}/approvaltests/reporters/clipboard_reporter.pyc
60+
${PYSITELIB}/approvaltests/reporters/clipboard_reporter.pyo
7461
${PYSITELIB}/approvaltests/reporters/diff_reporter.py
62+
${PYSITELIB}/approvaltests/reporters/diff_reporter.pyc
63+
${PYSITELIB}/approvaltests/reporters/diff_reporter.pyo
7564
${PYSITELIB}/approvaltests/reporters/first_working_reporter.py
65+
${PYSITELIB}/approvaltests/reporters/first_working_reporter.pyc
66+
${PYSITELIB}/approvaltests/reporters/first_working_reporter.pyo
7667
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.py
68+
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.pyc
69+
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.pyo
7770
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.py
71+
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.pyc
72+
${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.pyo
7873
${PYSITELIB}/approvaltests/reporters/multi_reporter.py
74+
${PYSITELIB}/approvaltests/reporters/multi_reporter.pyc
75+
${PYSITELIB}/approvaltests/reporters/multi_reporter.pyo
7976
${PYSITELIB}/approvaltests/reporters/python_native_reporter.py
77+
${PYSITELIB}/approvaltests/reporters/python_native_reporter.pyc
78+
${PYSITELIB}/approvaltests/reporters/python_native_reporter.pyo
8079
${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.py
80+
${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.pyc
81+
${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.pyo
8182
${PYSITELIB}/approvaltests/reporters/reporters.json
8283
${PYSITELIB}/approvaltests/reporters/testing_reporter.py
84+
${PYSITELIB}/approvaltests/reporters/testing_reporter.pyc
85+
${PYSITELIB}/approvaltests/reporters/testing_reporter.pyo
8386
${PYSITELIB}/approvaltests/string_writer.py
87+
${PYSITELIB}/approvaltests/string_writer.pyc
88+
${PYSITELIB}/approvaltests/string_writer.pyo
8489
${PYSITELIB}/approvaltests/utils.py
90+
${PYSITELIB}/approvaltests/utils.pyc
91+
${PYSITELIB}/approvaltests/utils.pyo
8592
${PYSITELIB}/approvaltests/version.py
93+
${PYSITELIB}/approvaltests/version.pyc
94+
${PYSITELIB}/approvaltests/version.pyo

devel/py-approvaltests/distinfo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$NetBSD: distinfo,v 1.1 2020/04/20 14:37:46 schmonz Exp $
1+
$NetBSD: distinfo,v 1.2 2020/11/01 13:52:43 schmonz Exp $
22

3-
SHA1 (ApprovalTests.Python/0.2.6.tar.gz) = 02d0720f83c99334c753aae67e622701e11e7a83
4-
RMD160 (ApprovalTests.Python/0.2.6.tar.gz) = 28391ed9a8204d82636034c19073224d38c57737
5-
SHA512 (ApprovalTests.Python/0.2.6.tar.gz) = ef9ad8280b43c415d5181b5f3a8fab368aabe1831e681a0fbfabd895ead3231807104a109b943d9d30853dfd3e250cbbd6eff55c8732648d96beabb3aa475303
6-
Size (ApprovalTests.Python/0.2.6.tar.gz) = 22616 bytes
3+
SHA1 (ApprovalTests.Python/0.2.7.tar.gz) = 6e344e8cd183a167ea0fd56d912583b98a97b518
4+
RMD160 (ApprovalTests.Python/0.2.7.tar.gz) = d26884953131a990040696e8cd266d9db8ecdb3a
5+
SHA512 (ApprovalTests.Python/0.2.7.tar.gz) = a43c6e3a513cb2dfdf7502ef10579eb3e4f7e7c79825526dd35d2616afdd5d2be800f852e3211f173d7dd9a91262c791c1367a294be4f1c40490aae9c4935506
6+
Size (ApprovalTests.Python/0.2.7.tar.gz) = 26978 bytes

0 commit comments

Comments
 (0)