testrail-api 1.13.2__tar.gz → 1.13.4__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 (79) hide show
  1. {testrail_api-1.13.2 → testrail_api-1.13.4}/.github/workflows/python-package.yml +7 -7
  2. {testrail_api-1.13.2 → testrail_api-1.13.4}/.github/workflows/python-publish.yml +1 -1
  3. {testrail_api-1.13.2 → testrail_api-1.13.4}/PKG-INFO +17 -5
  4. testrail_api-1.13.4/Pipfile +26 -0
  5. testrail_api-1.13.4/ruff.toml +62 -0
  6. testrail_api-1.13.4/setup.cfg +7 -0
  7. {testrail_api-1.13.2 → testrail_api-1.13.4}/setup.py +5 -3
  8. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api/__init__.py +2 -5
  9. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api/__version__.py +9 -4
  10. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api/_category.py +261 -223
  11. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api/_enums.py +2 -2
  12. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api/_exception.py +4 -4
  13. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api/_session.py +48 -46
  14. testrail_api-1.13.4/testrail_api/_testrail_api.py +33 -0
  15. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api.egg-info/PKG-INFO +17 -5
  16. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api.egg-info/SOURCES.txt +1 -0
  17. testrail_api-1.13.4/testrail_api.egg-info/requires.txt +1 -0
  18. testrail_api-1.13.4/tests/conftest.py +103 -0
  19. testrail_api-1.13.4/tests/test_attachments.py +240 -0
  20. testrail_api-1.13.4/tests/test_case_fields.py +36 -0
  21. testrail_api-1.13.4/tests/test_case_types.py +14 -0
  22. {testrail_api-1.13.2 → testrail_api-1.13.4}/tests/test_cases.py +13 -29
  23. testrail_api-1.13.4/tests/test_configurations.py +54 -0
  24. testrail_api-1.13.4/tests/test_datasets.py +110 -0
  25. testrail_api-1.13.4/tests/test_groups.py +65 -0
  26. testrail_api-1.13.4/tests/test_milestone.py +92 -0
  27. {testrail_api-1.13.2 → testrail_api-1.13.4}/tests/test_other.py +48 -62
  28. testrail_api-1.13.4/tests/test_plans.py +136 -0
  29. testrail_api-1.13.4/tests/test_priorities.py +15 -0
  30. testrail_api-1.13.4/tests/test_projects.py +69 -0
  31. testrail_api-1.13.4/tests/test_reports.py +25 -0
  32. testrail_api-1.13.4/tests/test_result_fields.py +11 -0
  33. testrail_api-1.13.4/tests/test_results.py +134 -0
  34. testrail_api-1.13.4/tests/test_roles.py +27 -0
  35. testrail_api-1.13.4/tests/test_runs.py +89 -0
  36. testrail_api-1.13.4/tests/test_sections.py +85 -0
  37. testrail_api-1.13.4/tests/test_shared_steps.py +80 -0
  38. testrail_api-1.13.4/tests/test_statuses.py +46 -0
  39. testrail_api-1.13.4/tests/test_suites.py +47 -0
  40. testrail_api-1.13.4/tests/test_template.py +18 -0
  41. testrail_api-1.13.4/tests/test_tests.py +33 -0
  42. testrail_api-1.13.4/tests/test_users.py +62 -0
  43. testrail_api-1.13.4/tests/test_variables.py +68 -0
  44. testrail_api-1.13.2/Pipfile +0 -27
  45. testrail_api-1.13.2/setup.cfg +0 -13
  46. testrail_api-1.13.2/testrail_api/_testrail_api.py +0 -213
  47. testrail_api-1.13.2/testrail_api.egg-info/requires.txt +0 -1
  48. testrail_api-1.13.2/tests/conftest.py +0 -91
  49. testrail_api-1.13.2/tests/test_attachments.py +0 -269
  50. testrail_api-1.13.2/tests/test_case_fields.py +0 -41
  51. testrail_api-1.13.2/tests/test_case_types.py +0 -16
  52. testrail_api-1.13.2/tests/test_configurations.py +0 -78
  53. testrail_api-1.13.2/tests/test_datasets.py +0 -103
  54. testrail_api-1.13.2/tests/test_groups.py +0 -94
  55. testrail_api-1.13.2/tests/test_milestone.py +0 -109
  56. testrail_api-1.13.2/tests/test_plans.py +0 -183
  57. testrail_api-1.13.2/tests/test_priorities.py +0 -17
  58. testrail_api-1.13.2/tests/test_projects.py +0 -77
  59. testrail_api-1.13.2/tests/test_reports.py +0 -25
  60. testrail_api-1.13.2/tests/test_result_fields.py +0 -13
  61. testrail_api-1.13.2/tests/test_results.py +0 -159
  62. testrail_api-1.13.2/tests/test_roles.py +0 -36
  63. testrail_api-1.13.2/tests/test_runs.py +0 -110
  64. testrail_api-1.13.2/tests/test_sections.py +0 -101
  65. testrail_api-1.13.2/tests/test_shared_steps.py +0 -93
  66. testrail_api-1.13.2/tests/test_statuses.py +0 -44
  67. testrail_api-1.13.2/tests/test_suites.py +0 -64
  68. testrail_api-1.13.2/tests/test_template.py +0 -15
  69. testrail_api-1.13.2/tests/test_tests.py +0 -50
  70. testrail_api-1.13.2/tests/test_users.py +0 -69
  71. testrail_api-1.13.2/tests/test_variables.py +0 -77
  72. {testrail_api-1.13.2 → testrail_api-1.13.4}/.editorconfig +0 -0
  73. {testrail_api-1.13.2 → testrail_api-1.13.4}/.gitignore +0 -0
  74. {testrail_api-1.13.2 → testrail_api-1.13.4}/LICENSE +0 -0
  75. {testrail_api-1.13.2 → testrail_api-1.13.4}/README.md +0 -0
  76. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api.egg-info/dependency_links.txt +0 -0
  77. {testrail_api-1.13.2 → testrail_api-1.13.4}/testrail_api.egg-info/top_level.txt +0 -0
  78. {testrail_api-1.13.2 → testrail_api-1.13.4}/tests/attach.jpg +0 -0
  79. {testrail_api-1.13.2 → testrail_api-1.13.4}/tests/pytest.ini +0 -0
@@ -12,7 +12,7 @@ jobs:
12
12
  strategy:
13
13
  fail-fast: false
14
14
  matrix:
15
- python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
15
+ python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v3
@@ -23,14 +23,14 @@ jobs:
23
23
  - name: Install dependencies
24
24
  run: |
25
25
  python -m pip install --upgrade pip
26
- python -m pip install flake8 pep8-naming pytest black pytest-cov responses
26
+ python -m pip install pytest pytest-cov pytest-xdist responses==0.21.0 ruff==0.11.8
27
27
  python -m pip install -e .
28
- - name: Flake8
28
+ - name: Format check
29
29
  run: |
30
- flake8 testrail_api
31
- - name: Black
30
+ ruff format --check
31
+ - name: Lints
32
32
  run: |
33
- black --line-length=120 --check testrail_api
33
+ ruff check
34
34
  - name: Test with pytest
35
35
  run: |
36
- pytest tests
36
+ pytest -n auto ./tests
@@ -25,7 +25,7 @@ jobs:
25
25
  - name: Set up Python
26
26
  uses: actions/setup-python@v3
27
27
  with:
28
- python-version: "3.11"
28
+ python-version: "3.12"
29
29
  - name: Install dependencies
30
30
  run: |
31
31
  python -m pip install --upgrade pip
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: testrail_api
3
- Version: 1.13.2
3
+ Version: 1.13.4
4
4
  Summary: Python wrapper of the TestRail API
5
5
  Home-page: https://github.com/tolstislon/testrail-api
6
6
  Author: tolstislon
@@ -13,18 +13,30 @@ Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Natural Language :: English
14
14
  Classifier: Operating System :: OS Independent
15
15
  Classifier: Programming Language :: Python
16
- Classifier: Programming Language :: Python :: 3.8
17
16
  Classifier: Programming Language :: Python :: 3.9
18
17
  Classifier: Programming Language :: Python :: 3.10
19
18
  Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
22
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
- Requires-Python: >=3.8
24
+ Requires-Python: >=3.9
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
- Requires-Dist: requests>=2.32.3
27
+ Requires-Dist: requests>=2.32.4
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: keywords
35
+ Dynamic: license
36
+ Dynamic: license-file
37
+ Dynamic: requires-dist
38
+ Dynamic: requires-python
39
+ Dynamic: summary
28
40
 
29
41
  # Testrail Api
30
42
 
@@ -0,0 +1,26 @@
1
+ [[source]]
2
+ name = "pypi"
3
+ url = "https://pypi.org/simple"
4
+ verify_ssl = true
5
+
6
+ [dev-packages]
7
+ pytest = "==8.4.0"
8
+ pytest-cov = "==6.2.1"
9
+ responses = "==0.21.0"
10
+ ruff = "==0.11.8"
11
+ pytest-xdist = "==3.7.0"
12
+
13
+ [packages]
14
+ requests = "==2.32.4"
15
+ testrail-api = { editable = true, path = "." }
16
+
17
+ [requires]
18
+ python_version = "3.12"
19
+
20
+ [pipenv]
21
+ allow_prereleases = true
22
+
23
+ [scripts]
24
+ tests = "pytest -n auto ./tests"
25
+ format = "ruff format"
26
+ check = "ruff check --fix"
@@ -0,0 +1,62 @@
1
+ line-length = 120
2
+ target-version = "py39"
3
+ exclude = [".git", ".pytest_cache", ".idea", ".github", "build"]
4
+
5
+ [lint]
6
+ select = [
7
+ "A", # flake8-builtins
8
+ "ANN", # flake8-annotations
9
+ "B", # flake8-bugbear
10
+ "C4", # flake8-comprehensions
11
+ "COM", # flake8-commas
12
+ "D", # pydocstyle
13
+ "E", # pycodestyle
14
+ "F", # Pyflakes
15
+ "FURB", # refurb
16
+ "I", # isort
17
+ "ICN", # flake8-import-conventions
18
+ "ISC", # flake8-implicit-str-concat
19
+ "N", # pep8-naming
20
+ "PERF", # Perflint
21
+ "PGH", # pygrep-hooks
22
+ "PTH", # flake8-use-pathlib
23
+ "RUF", # Ruff-specific rules
24
+ "S", # flake8-bandit
25
+ "T20", # flake8-print
26
+ "UP", # pyupgrade
27
+ "PIE", # flake8-pie
28
+ "PT", # flake8-pytest-style
29
+ "Q", # flake8-quotes
30
+ "RET", # flake8-return
31
+ "SIM", # flake8-simplify
32
+ "ARG", # flake8-unused-arguments
33
+ "FLY", # flynt
34
+ "PL", # Pylint
35
+ "RSE", # flake8-raise
36
+ ]
37
+ ignore = [
38
+ "S311", # Standard pseudo-random generators are not suitable for cryptographic purposesStandard pseudo-random generators are not suitable for cryptographic purposes
39
+ "D212", # multi-line-summary-first-line (conflicts rules)
40
+ "D203", # one-blank-line-before-class (conflicts rules)
41
+ "COM812", # conflicts rules
42
+ "ISC001", # conflicts rules
43
+ "N818", # Exception name `{exception}` should be named with an Error suffix
44
+ "ANN003", # Missing type annotation for `**kwargs`
45
+ "ANN002", # Missing type annotation for `*args`
46
+ "D107", # Missing docstring in `__init__`
47
+ "ANN401", # Dynamically typed expressions (typing.Any) are disallowed`
48
+ ]
49
+
50
+ [lint.per-file-ignores]
51
+ "test_*.py" = ["S101", "D103", "ANN201", "D100", "S605", "S607", "ANN001", "PLR2004", "PT018", "ARG002", "D102", "ANN204", "A004", "PT012"]
52
+ "conftest.py" = ["ANN001", "PLR0913", "D101", "D100"]
53
+ "_category.py" = ["D401", "A002"]
54
+
55
+ [lint.flake8-pytest-style]
56
+ parametrize-values-row-type = "tuple"
57
+ parametrize-values-type = "tuple"
58
+ fixture-parentheses = false
59
+ mark-parentheses = false
60
+
61
+ [format]
62
+ line-ending = "lf"
@@ -0,0 +1,7 @@
1
+ [coverage:run]
2
+ omit = testrail_api/__version__.py
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
@@ -1,3 +1,5 @@
1
+ """Setup file."""
2
+
1
3
  from pathlib import Path
2
4
 
3
5
  from setuptools import find_packages, setup
@@ -18,8 +20,8 @@ setup(
18
20
  long_description_content_type="text/markdown",
19
21
  use_scm_version={"write_to": "testrail_api/__version__.py"},
20
22
  setup_requires=["setuptools_scm"],
21
- install_requires=["requests>=2.32.3"],
22
- python_requires=">=3.8",
23
+ install_requires=["requests>=2.32.4"],
24
+ python_requires=">=3.9",
23
25
  include_package_data=True,
24
26
  keywords=[
25
27
  "testrail",
@@ -37,11 +39,11 @@ setup(
37
39
  "Natural Language :: English",
38
40
  "Operating System :: OS Independent",
39
41
  "Programming Language :: Python",
40
- "Programming Language :: Python :: 3.8",
41
42
  "Programming Language :: Python :: 3.9",
42
43
  "Programming Language :: Python :: 3.10",
43
44
  "Programming Language :: Python :: 3.11",
44
45
  "Programming Language :: Python :: 3.12",
46
+ "Programming Language :: Python :: 3.13",
45
47
  "Programming Language :: Python :: Implementation :: CPython",
46
48
  "Programming Language :: Python :: Implementation :: PyPy",
47
49
  "Topic :: Software Development :: Libraries :: Python Modules",
@@ -1,7 +1,5 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  """
4
- Python wrapper of the TestRail API
2
+ Python wrapper of the TestRail API.
5
3
 
6
4
  ------------------
7
5
  from datetime import datetime
@@ -53,7 +51,6 @@ import logging
53
51
  from ._exception import StatusCodeError
54
52
  from ._testrail_api import TestRailAPI
55
53
 
56
-
57
54
  logging.getLogger(__package__).addHandler(logging.NullHandler())
58
55
 
59
- __all__ = ["TestRailAPI", "StatusCodeError", "__version__"]
56
+ __all__ = ["StatusCodeError", "TestRailAPI", "__version__"]
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '1.13.2'
16
- __version_tuple__ = version_tuple = (1, 13, 2)
20
+ __version__ = version = '1.13.4'
21
+ __version_tuple__ = version_tuple = (1, 13, 4)