kiwitcms-django-plugin 12.7__tar.gz → 17.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {kiwitcms-django-plugin-12.7/kiwitcms_django_plugin.egg-info → kiwitcms_django_plugin-17.3}/PKG-INFO +53 -13
  2. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/README.rst +34 -4
  3. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3/kiwitcms_django_plugin.egg-info}/PKG-INFO +53 -13
  4. kiwitcms_django_plugin-17.3/kiwitcms_django_plugin.egg-info/requires.txt +2 -0
  5. kiwitcms_django_plugin-17.3/requirements.txt +2 -0
  6. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/setup.cfg +4 -0
  7. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/setup.py +3 -8
  8. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/tcms_django_plugin/result.py +10 -7
  9. kiwitcms_django_plugin-17.3/tcms_django_plugin/version.py +1 -0
  10. kiwitcms-django-plugin-12.7/kiwitcms_django_plugin.egg-info/requires.txt +0 -2
  11. kiwitcms-django-plugin-12.7/requirements.txt +0 -2
  12. kiwitcms-django-plugin-12.7/tcms_django_plugin/version.py +0 -1
  13. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/LICENSE +0 -0
  14. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/MANIFEST.in +0 -0
  15. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/kiwitcms_django_plugin.egg-info/SOURCES.txt +0 -0
  16. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/kiwitcms_django_plugin.egg-info/dependency_links.txt +0 -0
  17. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/kiwitcms_django_plugin.egg-info/top_level.txt +0 -0
  18. {kiwitcms-django-plugin-12.7 → kiwitcms_django_plugin-17.3}/tcms_django_plugin/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: kiwitcms-django-plugin
3
- Version: 12.7
3
+ Version: 17.3
4
4
  Summary: Django test runner plugin for Kiwi TCMS
5
5
  Home-page: https://github.com/kiwitcms/django-plugin
6
6
  Author: Bryan Mutai
@@ -8,31 +8,37 @@ Author-email: work@bryanmutai.co
8
8
  Maintainer: Kiwi TCMS
9
9
  Maintainer-email: info@kiwitcms.org
10
10
  License: GPLv3
11
- Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Intended Audience :: System Administrators
14
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
14
  Classifier: Operating System :: POSIX
16
15
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3.7
18
- Classifier: Programming Language :: Python :: 3.8
19
- Classifier: Programming Language :: Python :: 3.9
20
- Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.14
21
17
  Classifier: Topic :: Software Development
22
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
19
  Classifier: Topic :: Software Development :: Quality Assurance
24
20
  Classifier: Topic :: Software Development :: Testing
25
- Requires-Python: >=3.6
21
+ Requires-Python: >=3.14
26
22
  Description-Content-Type: text/x-rst
27
23
  License-File: LICENSE
24
+ Requires-Dist: Django>=6
25
+ Requires-Dist: tcms-api>=17.3
26
+ Dynamic: author
27
+ Dynamic: author-email
28
+ Dynamic: classifier
29
+ Dynamic: description
30
+ Dynamic: description-content-type
31
+ Dynamic: home-page
32
+ Dynamic: license-file
33
+ Dynamic: maintainer
34
+ Dynamic: maintainer-email
35
+ Dynamic: requires-dist
36
+ Dynamic: requires-python
37
+ Dynamic: summary
28
38
 
29
39
  Django Test Runner plugin for Kiwi TCMS
30
40
  =======================================
31
41
 
32
- .. image:: https://tidelift.com/badges/package/pypi/kiwitcms-django-plugin
33
- :target: https://tidelift.com/subscription/pkg/kiwitcms-django-plugin?utm_source=pypi-kiwitcms-django-plugin&utm_medium=github&utm_campaign=readme
34
- :alt: Tidelift
35
-
36
42
  .. image:: https://img.shields.io/twitter/follow/KiwiTCMS.svg
37
43
  :target: https://twitter.com/KiwiTCMS
38
44
  :alt: Kiwi TCMS on Twitter
@@ -74,9 +80,43 @@ When you run ``./manage.py test`` Django looks at the ``TEST_RUNNER`` setting
74
80
  to determine what to do.
75
81
 
76
82
 
83
+ Stable test case identification
84
+ -------------------------------
85
+
86
+ Test methods can be decorated with ``@TestCase`` from
87
+ ``tcms_api.plugin_helpers`` to reuse an existing TestCase or to specify
88
+ additional TestCase fields::
89
+
90
+ import unittest
91
+ from tcms_api.plugin_helpers import TestCase
92
+
93
+ class CouponTests(unittest.TestCase):
94
+ @TestCase(id=45)
95
+ def test_coupon_guest(self):
96
+ ...
97
+
98
+
77
99
  Changelog
78
100
  ---------
79
101
 
102
+ v17.3 (03 Dec 2026)
103
+ ~~~~~~~~~~~~~~~~~~~
104
+
105
+ - Update tcms-api from 12.7 to 17.3
106
+ - Support the ``@tcms_api.plugin_helpers.TestCase`` decorator for
107
+ stable test case identification
108
+
109
+
110
+ v16.1 (16 Jun 2026)
111
+ ~~~~~~~~~~~~~~~~~~~
112
+
113
+ - Minimum supported Django version is now 6, because
114
+ ``DebugSQLTestResult`` now relies on Django's internal
115
+ ``_read_logger_stream()`` API (the ``debug_sql_stream`` attribute was
116
+ removed in Django 6)
117
+ - Require Python >= 3.12
118
+
119
+
80
120
  v12.7 (10 Dec 2023)
81
121
  ~~~~~~~~~~~~~~~~~~~
82
122
 
@@ -1,10 +1,6 @@
1
1
  Django Test Runner plugin for Kiwi TCMS
2
2
  =======================================
3
3
 
4
- .. image:: https://tidelift.com/badges/package/pypi/kiwitcms-django-plugin
5
- :target: https://tidelift.com/subscription/pkg/kiwitcms-django-plugin?utm_source=pypi-kiwitcms-django-plugin&utm_medium=github&utm_campaign=readme
6
- :alt: Tidelift
7
-
8
4
  .. image:: https://img.shields.io/twitter/follow/KiwiTCMS.svg
9
5
  :target: https://twitter.com/KiwiTCMS
10
6
  :alt: Kiwi TCMS on Twitter
@@ -46,9 +42,43 @@ When you run ``./manage.py test`` Django looks at the ``TEST_RUNNER`` setting
46
42
  to determine what to do.
47
43
 
48
44
 
45
+ Stable test case identification
46
+ -------------------------------
47
+
48
+ Test methods can be decorated with ``@TestCase`` from
49
+ ``tcms_api.plugin_helpers`` to reuse an existing TestCase or to specify
50
+ additional TestCase fields::
51
+
52
+ import unittest
53
+ from tcms_api.plugin_helpers import TestCase
54
+
55
+ class CouponTests(unittest.TestCase):
56
+ @TestCase(id=45)
57
+ def test_coupon_guest(self):
58
+ ...
59
+
60
+
49
61
  Changelog
50
62
  ---------
51
63
 
64
+ v17.3 (03 Dec 2026)
65
+ ~~~~~~~~~~~~~~~~~~~
66
+
67
+ - Update tcms-api from 12.7 to 17.3
68
+ - Support the ``@tcms_api.plugin_helpers.TestCase`` decorator for
69
+ stable test case identification
70
+
71
+
72
+ v16.1 (16 Jun 2026)
73
+ ~~~~~~~~~~~~~~~~~~~
74
+
75
+ - Minimum supported Django version is now 6, because
76
+ ``DebugSQLTestResult`` now relies on Django's internal
77
+ ``_read_logger_stream()`` API (the ``debug_sql_stream`` attribute was
78
+ removed in Django 6)
79
+ - Require Python >= 3.12
80
+
81
+
52
82
  v12.7 (10 Dec 2023)
53
83
  ~~~~~~~~~~~~~~~~~~~
54
84
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: kiwitcms-django-plugin
3
- Version: 12.7
3
+ Version: 17.3
4
4
  Summary: Django test runner plugin for Kiwi TCMS
5
5
  Home-page: https://github.com/kiwitcms/django-plugin
6
6
  Author: Bryan Mutai
@@ -8,31 +8,37 @@ Author-email: work@bryanmutai.co
8
8
  Maintainer: Kiwi TCMS
9
9
  Maintainer-email: info@kiwitcms.org
10
10
  License: GPLv3
11
- Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Intended Audience :: System Administrators
14
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
14
  Classifier: Operating System :: POSIX
16
15
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3.7
18
- Classifier: Programming Language :: Python :: 3.8
19
- Classifier: Programming Language :: Python :: 3.9
20
- Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.14
21
17
  Classifier: Topic :: Software Development
22
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
19
  Classifier: Topic :: Software Development :: Quality Assurance
24
20
  Classifier: Topic :: Software Development :: Testing
25
- Requires-Python: >=3.6
21
+ Requires-Python: >=3.14
26
22
  Description-Content-Type: text/x-rst
27
23
  License-File: LICENSE
24
+ Requires-Dist: Django>=6
25
+ Requires-Dist: tcms-api>=17.3
26
+ Dynamic: author
27
+ Dynamic: author-email
28
+ Dynamic: classifier
29
+ Dynamic: description
30
+ Dynamic: description-content-type
31
+ Dynamic: home-page
32
+ Dynamic: license-file
33
+ Dynamic: maintainer
34
+ Dynamic: maintainer-email
35
+ Dynamic: requires-dist
36
+ Dynamic: requires-python
37
+ Dynamic: summary
28
38
 
29
39
  Django Test Runner plugin for Kiwi TCMS
30
40
  =======================================
31
41
 
32
- .. image:: https://tidelift.com/badges/package/pypi/kiwitcms-django-plugin
33
- :target: https://tidelift.com/subscription/pkg/kiwitcms-django-plugin?utm_source=pypi-kiwitcms-django-plugin&utm_medium=github&utm_campaign=readme
34
- :alt: Tidelift
35
-
36
42
  .. image:: https://img.shields.io/twitter/follow/KiwiTCMS.svg
37
43
  :target: https://twitter.com/KiwiTCMS
38
44
  :alt: Kiwi TCMS on Twitter
@@ -74,9 +80,43 @@ When you run ``./manage.py test`` Django looks at the ``TEST_RUNNER`` setting
74
80
  to determine what to do.
75
81
 
76
82
 
83
+ Stable test case identification
84
+ -------------------------------
85
+
86
+ Test methods can be decorated with ``@TestCase`` from
87
+ ``tcms_api.plugin_helpers`` to reuse an existing TestCase or to specify
88
+ additional TestCase fields::
89
+
90
+ import unittest
91
+ from tcms_api.plugin_helpers import TestCase
92
+
93
+ class CouponTests(unittest.TestCase):
94
+ @TestCase(id=45)
95
+ def test_coupon_guest(self):
96
+ ...
97
+
98
+
77
99
  Changelog
78
100
  ---------
79
101
 
102
+ v17.3 (03 Dec 2026)
103
+ ~~~~~~~~~~~~~~~~~~~
104
+
105
+ - Update tcms-api from 12.7 to 17.3
106
+ - Support the ``@tcms_api.plugin_helpers.TestCase`` decorator for
107
+ stable test case identification
108
+
109
+
110
+ v16.1 (16 Jun 2026)
111
+ ~~~~~~~~~~~~~~~~~~~
112
+
113
+ - Minimum supported Django version is now 6, because
114
+ ``DebugSQLTestResult`` now relies on Django's internal
115
+ ``_read_logger_stream()`` API (the ``debug_sql_stream`` attribute was
116
+ removed in Django 6)
117
+ - Require Python >= 3.12
118
+
119
+
80
120
  v12.7 (10 Dec 2023)
81
121
  ~~~~~~~~~~~~~~~~~~~
82
122
 
@@ -0,0 +1,2 @@
1
+ Django>=6
2
+ tcms-api>=17.3
@@ -0,0 +1,2 @@
1
+ Django>=6
2
+ tcms-api>=17.3
@@ -1,3 +1,7 @@
1
+ [metadata]
2
+ license = GPLv3
3
+ license_files = LICENSE
4
+
1
5
  [flake8]
2
6
  max-line-length = 102
3
7
  extend-ignore = E203
@@ -33,21 +33,16 @@ setup(
33
33
  author_email="work@bryanmutai.co",
34
34
  maintainer="Kiwi TCMS",
35
35
  maintainer_email="info@kiwitcms.org",
36
- license="GPLv3",
37
36
  url="https://github.com/kiwitcms/django-plugin",
38
- python_requires=">=3.6",
37
+ python_requires=">=3.14",
39
38
  install_requires=REQUIREMENTS,
40
39
  classifiers=[
41
- "Development Status :: 3 - Alpha",
40
+ "Development Status :: 5 - Production/Stable",
42
41
  "Intended Audience :: Developers",
43
42
  "Intended Audience :: System Administrators",
44
- "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
45
43
  "Operating System :: POSIX",
46
44
  "Programming Language :: Python",
47
- "Programming Language :: Python :: 3.7",
48
- "Programming Language :: Python :: 3.8",
49
- "Programming Language :: Python :: 3.9",
50
- "Programming Language :: Python :: 3.11",
45
+ "Programming Language :: Python :: 3.14",
51
46
  "Topic :: Software Development",
52
47
  "Topic :: Software Development :: Libraries :: Python Modules",
53
48
  "Topic :: Software Development :: Quality Assurance",
@@ -27,7 +27,10 @@ class KiwiTCMSIntegrationMixin: # pylint: disable=invalid-name
27
27
 
28
28
  def startTest(self, test):
29
29
  super().startTest(test)
30
- test_case, _ = self.backend.test_case_get_or_create(self.getDescription(test))
30
+ test_method = getattr(test, getattr(test, "_testMethodName", ""), None)
31
+ test_case, _ = self.backend.test_case_get_or_create(
32
+ self.getDescription(test), test_method
33
+ )
31
34
  self.backend.add_test_case_to_plan(test_case["id"], self.backend.plan_id)
32
35
  self.test_executions = self.backend.add_test_case_to_run(
33
36
  test_case["id"], self.backend.run_id
@@ -108,19 +111,19 @@ class DebugSQLTestResult(KiwiTCMSIntegrationMixin, DjangoDebugSQLResult):
108
111
 
109
112
  def addError(self, test, err):
110
113
  super().addError(test, err)
111
- self.debug_sql_stream.seek(0)
114
+ sql_debug = self._read_logger_stream()
112
115
  for execution in self.test_executions:
113
- self.backend.add_comment(execution["id"], self.debug_sql_stream.read())
116
+ self.backend.add_comment(execution["id"], sql_debug)
114
117
 
115
118
  def addFailure(self, test, err):
116
119
  super().addFailure(test, err)
117
- self.debug_sql_stream.seek(0)
120
+ sql_debug = self._read_logger_stream()
118
121
  for execution in self.test_executions:
119
- self.backend.add_comment(execution["id"], self.debug_sql_stream.read())
122
+ self.backend.add_comment(execution["id"], sql_debug)
120
123
 
121
124
  def addSubTest(self, test, subtest, err):
122
125
  super().addSubTest(test, subtest, err)
123
126
  if err:
124
- self.debug_sql_stream.seek(0)
127
+ sql_debug = self._read_logger_stream()
125
128
  for execution in self.test_executions:
126
- self.backend.add_comment(execution["id"], self.debug_sql_stream.read())
129
+ self.backend.add_comment(execution["id"], sql_debug)
@@ -0,0 +1 @@
1
+ __version__ = "17.3"
@@ -1,2 +0,0 @@
1
- Django
2
- tcms-api>=12.7
@@ -1,2 +0,0 @@
1
- Django
2
- tcms-api>=12.7
@@ -1 +0,0 @@
1
- __version__ = "12.7"