boarddata 4.4.2__tar.gz → 4.4.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 (59) hide show
  1. {boarddata-4.4.2 → boarddata-4.4.4}/PKG-INFO +1 -1
  2. {boarddata-4.4.2 → boarddata-4.4.4}/__init__.py +1 -1
  3. {boarddata-4.4.2 → boarddata-4.4.4}/boarddata.egg-info/PKG-INFO +1 -1
  4. {boarddata-4.4.2 → boarddata-4.4.4}/pyproject.toml +1 -1
  5. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_documents.py +22 -0
  6. {boarddata-4.4.2 → boarddata-4.4.4}/CLAUDE.md +0 -0
  7. {boarddata-4.4.2 → boarddata-4.4.4}/README.md +0 -0
  8. {boarddata-4.4.2 → boarddata-4.4.4}/_assemblies.py +0 -0
  9. {boarddata-4.4.2 → boarddata-4.4.4}/_auditors.py +0 -0
  10. {boarddata-4.4.2 → boarddata-4.4.4}/_base.py +0 -0
  11. {boarddata-4.4.2 → boarddata-4.4.4}/_comex.py +0 -0
  12. {boarddata-4.4.2 → boarddata-4.4.4}/_companies.py +0 -0
  13. {boarddata-4.4.2 → boarddata-4.4.4}/_criteria.py +0 -0
  14. {boarddata-4.4.2 → boarddata-4.4.4}/_directors.py +0 -0
  15. {boarddata-4.4.2 → boarddata-4.4.4}/_documents.py +0 -0
  16. {boarddata-4.4.2 → boarddata-4.4.4}/_esg.py +0 -0
  17. {boarddata-4.4.2 → boarddata-4.4.4}/_indexes.py +0 -0
  18. {boarddata-4.4.2 → boarddata-4.4.4}/_persons.py +0 -0
  19. {boarddata-4.4.2 → boarddata-4.4.4}/_sentinel.py +0 -0
  20. {boarddata-4.4.2 → boarddata-4.4.4}/_utilities.py +0 -0
  21. {boarddata-4.4.2 → boarddata-4.4.4}/boarddata.egg-info/SOURCES.txt +0 -0
  22. {boarddata-4.4.2 → boarddata-4.4.4}/boarddata.egg-info/dependency_links.txt +0 -0
  23. {boarddata-4.4.2 → boarddata-4.4.4}/boarddata.egg-info/requires.txt +0 -0
  24. {boarddata-4.4.2 → boarddata-4.4.4}/boarddata.egg-info/top_level.txt +0 -0
  25. {boarddata-4.4.2 → boarddata-4.4.4}/cache.py +0 -0
  26. {boarddata-4.4.2 → boarddata-4.4.4}/client.py +0 -0
  27. {boarddata-4.4.2 → boarddata-4.4.4}/errors.py +0 -0
  28. {boarddata-4.4.2 → boarddata-4.4.4}/py.typed +0 -0
  29. {boarddata-4.4.2 → boarddata-4.4.4}/setup.cfg +0 -0
  30. {boarddata-4.4.2 → boarddata-4.4.4}/tests/__init__.py +0 -0
  31. {boarddata-4.4.2 → boarddata-4.4.4}/tests/conftest.py +0 -0
  32. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_assemblies.py +0 -0
  33. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_auditors.py +0 -0
  34. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_base.py +0 -0
  35. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_build_payload.py +0 -0
  36. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_cache.py +0 -0
  37. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_comex.py +0 -0
  38. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_companies.py +0 -0
  39. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_config.py +0 -0
  40. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_criteria.py +0 -0
  41. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_directors.py +0 -0
  42. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_esg.py +0 -0
  43. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_indexes.py +0 -0
  44. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_persons.py +0 -0
  45. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_sentinel.py +0 -0
  46. {boarddata-4.4.2 → boarddata-4.4.4}/tests/test_utilities.py +0 -0
  47. {boarddata-4.4.2 → boarddata-4.4.4}/types/__init__.py +0 -0
  48. {boarddata-4.4.2 → boarddata-4.4.4}/types/assemblies.py +0 -0
  49. {boarddata-4.4.2 → boarddata-4.4.4}/types/auditors.py +0 -0
  50. {boarddata-4.4.2 → boarddata-4.4.4}/types/comex.py +0 -0
  51. {boarddata-4.4.2 → boarddata-4.4.4}/types/companies.py +0 -0
  52. {boarddata-4.4.2 → boarddata-4.4.4}/types/core.py +0 -0
  53. {boarddata-4.4.2 → boarddata-4.4.4}/types/criteria.py +0 -0
  54. {boarddata-4.4.2 → boarddata-4.4.4}/types/directors.py +0 -0
  55. {boarddata-4.4.2 → boarddata-4.4.4}/types/documents.py +0 -0
  56. {boarddata-4.4.2 → boarddata-4.4.4}/types/esg.py +0 -0
  57. {boarddata-4.4.2 → boarddata-4.4.4}/types/indexes.py +0 -0
  58. {boarddata-4.4.2 → boarddata-4.4.4}/types/persons.py +0 -0
  59. {boarddata-4.4.2 → boarddata-4.4.4}/types/sentinel.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boarddata
3
- Version: 4.4.2
3
+ Version: 4.4.4
4
4
  Summary: Python SDK for the BoardData V2 REST API
5
5
  License: MIT
6
6
  Classifier: Development Status :: 4 - Beta
@@ -7,7 +7,7 @@ from .errors import BoardDataError
7
7
 
8
8
  from . import types as types # noqa: F401 — makes types accessible as boarddata.types
9
9
 
10
- __version__ = "4.4.2"
10
+ __version__ = "4.4.4"
11
11
  __all__ = [
12
12
  "Base",
13
13
  "BoardDataClient",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boarddata
3
- Version: 4.4.2
3
+ Version: 4.4.4
4
4
  Summary: Python SDK for the BoardData V2 REST API
5
5
  License: MIT
6
6
  Classifier: Development Status :: 4 - Beta
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "boarddata"
7
- version = "4.4.2"
7
+ version = "4.4.4"
8
8
  description = "Python SDK for the BoardData V2 REST API"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -31,6 +31,28 @@ class TestCreateDocument:
31
31
  assert payload["fiscal_year"] == 2024
32
32
 
33
33
 
34
+ class TestUpdateDocument:
35
+ def test_sends_patch_with_payload(self):
36
+ c = make_client()
37
+ c._request.return_value = {"id": "doc1", "title": "Updated"}
38
+ c.update_document("doc-uuid", title="Updated", fiscal_year=2025)
39
+ args, kwargs = c._request.call_args
40
+ assert args == ("PATCH", "documents/doc-uuid/")
41
+ payload = kwargs["json"]
42
+ assert payload["title"] == "Updated"
43
+ assert payload["fiscal_year"] == 2025
44
+ assert "document_type" not in payload
45
+
46
+ def test_ignores_none_values(self):
47
+ c = make_client()
48
+ c._request.return_value = {"id": "doc1", "title": "T"}
49
+ c.update_document("doc-uuid", title="T")
50
+ _, kwargs = c._request.call_args
51
+ payload = kwargs["json"]
52
+ assert "fiscal_year" not in payload
53
+ assert "isin" not in payload
54
+
55
+
34
56
  class TestGetPresignedUrl:
35
57
  def test_calls_correct_path(self):
36
58
  c = make_client()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes