Skip to content

Commit 04e9e2a

Browse files
authored
✅ add new version tests
1 parent 817f91b commit 04e9e2a

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

tests/test_versions/test_models.py

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,72 @@
44
from githubkit.versions.ghec_v2022_11_28.models import ( # noqa: F401
55
SimpleUser as SimpleUserGhecV2022_11_28,
66
)
7+
from githubkit.versions.ghec_v2026_03_10.models import ( # noqa: F401
8+
SimpleUser as SimpleUserGhecV2026_03_10,
9+
)
710
from githubkit.versions.latest.models import ( # noqa: F401
811
SimpleUser as SimpleUserLatest,
912
)
1013
from githubkit.versions.v2022_11_28.models import ( # noqa: F401
1114
SimpleUser as SimpleUserV2022_11_28,
1215
)
16+
from githubkit.versions.v2026_03_10.models import ( # noqa: F401
17+
SimpleUser as SimpleUserV2026_03_10,
18+
)
1319

1420
# isort: split
1521

22+
# Repository
1623
from githubkit.versions.ghec_v2022_11_28.models import ( # noqa: F401
1724
Repository as RepositoryGhecV2022_11_28,
1825
)
19-
20-
# Repository
26+
from githubkit.versions.ghec_v2026_03_10.models import ( # noqa: F401
27+
Repository as RepositoryGhecV2026_03_10,
28+
)
2129
from githubkit.versions.latest.models import ( # noqa: F401
2230
Repository as RepositoryLatest,
2331
)
2432
from githubkit.versions.v2022_11_28.models import ( # noqa: F401
2533
Repository as RepositoryV2022_11_28,
2634
)
35+
from githubkit.versions.v2026_03_10.models import ( # noqa: F401
36+
Repository as RepositoryV2026_03_10,
37+
)
2738

2839
# isort: split
2940

41+
# OrganizationFull
3042
from githubkit.versions.ghec_v2022_11_28.models import ( # noqa: F401
3143
OrganizationFull as OrganizationFullGhecV2022_11_28,
3244
)
33-
34-
# OrganizationFull
45+
from githubkit.versions.ghec_v2026_03_10.models import ( # noqa: F401
46+
OrganizationFull as OrganizationFullGhecV2026_03_10,
47+
)
3548
from githubkit.versions.latest.models import ( # noqa: F401
3649
OrganizationFull as OrganizationFullLatest,
3750
)
3851
from githubkit.versions.v2022_11_28.models import ( # noqa: F401
3952
OrganizationFull as OrganizationFullV2022_11_28,
4053
)
54+
from githubkit.versions.v2026_03_10.models import ( # noqa: F401
55+
OrganizationFull as OrganizationFullV2026_03_10,
56+
)
4157

4258
# isort: split
4359

60+
# CustomProperty
4461
from githubkit.versions.ghec_v2022_11_28.models import ( # noqa: F401
4562
CustomProperty as CustomPropertyGhecV2022_11_28,
4663
)
47-
48-
# CustomProperty
64+
from githubkit.versions.ghec_v2026_03_10.models import ( # noqa: F401
65+
CustomProperty as CustomPropertyGhecV2026_03_10,
66+
)
4967
from githubkit.versions.latest.models import ( # noqa: F401
5068
CustomProperty as CustomPropertyLatest,
5169
)
5270
from githubkit.versions.v2022_11_28.models import ( # noqa: F401
5371
CustomProperty as CustomPropertyV2022_11_28,
5472
)
73+
from githubkit.versions.v2026_03_10.models import ( # noqa: F401
74+
CustomProperty as CustomPropertyV2026_03_10,
75+
)

tests/test_versions/test_types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
from githubkit.versions.ghec_v2022_11_28.types import ( # noqa: F401
22
SimpleUserType as SimpleUserGhecV2022_11_28Type,
33
)
4+
from githubkit.versions.ghec_v2026_03_10.types import ( # noqa: F401
5+
SimpleUserType as SimpleUserGhecV2026_03_10Type,
6+
)
47
from githubkit.versions.latest.types import ( # noqa: F401
58
SimpleUserType as SimpleUserLatestType,
69
)
710
from githubkit.versions.v2022_11_28.types import ( # noqa: F401
811
SimpleUserType as SimpleUserV2022_11_28Type,
912
)
13+
from githubkit.versions.v2026_03_10.types import ( # noqa: F401
14+
SimpleUserType as SimpleUserV2026_03_10Type,
15+
)

0 commit comments

Comments
 (0)