UW-RestClients-R25 0.4__tar.gz → 0.6__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.
- uw_restclients_r25-0.6/PKG-INFO +28 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/README.md +2 -3
- uw_restclients_r25-0.6/UW_RestClients_R25.egg-info/PKG-INFO +28 -0
- uw_restclients_r25-0.6/UW_RestClients_R25.egg-info/requires.txt +2 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/setup.py +3 -4
- uw_restclients_r25-0.6/uw_r25/VERSION +1 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/__init__.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/dao.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/events.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/models.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/reservations.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/spaces.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/test.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/tests/test_dao.py +2 -2
- uw_restclients_r25-0.6/uw_r25/tests/test_events.py +61 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/tests/test_reservations.py +1 -1
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/tests/test_spaces.py +5 -5
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/util/__init__.py +1 -1
- UW-RestClients-R25-0.4/PKG-INFO +0 -18
- UW-RestClients-R25-0.4/UW_RestClients_R25.egg-info/PKG-INFO +0 -18
- UW-RestClients-R25-0.4/UW_RestClients_R25.egg-info/requires.txt +0 -2
- UW-RestClients-R25-0.4/uw_r25/VERSION +0 -1
- UW-RestClients-R25-0.4/uw_r25/tests/test_events.py +0 -61
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/LICENSE +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/MANIFEST.in +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/UW_RestClients_R25.egg-info/SOURCES.txt +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/UW_RestClients_R25.egg-info/dependency_links.txt +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/UW_RestClients_R25.egg-info/top_level.txt +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/setup.cfg +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/event.xml_event_id_100000 +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/event.xml_event_id_100002 +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/events.xml +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/events.xml_parent_id_100000 +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/events.xml_parent_id_100002 +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/space.xml_space_id_1000 +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/resources/r25/file/r25ws/servlet/wrd/run/spaces.xml +0 -0
- {UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/uw_r25/tests/__init__.py +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: UW-RestClients-R25
|
|
3
|
+
Version: 0.6
|
|
4
|
+
Summary: A library for connecting to the UW R25 API
|
|
5
|
+
Home-page: https://github.com/uw-it-aca/uw-restclients-r25
|
|
6
|
+
Author: UWIT Student & Educational Technology Services
|
|
7
|
+
Author-email: aca-it@uw.edu
|
|
8
|
+
License: Apache License, Version 2.0
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: uw-restclients-core
|
|
15
|
+
Requires-Dist: lxml<5
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
See the README on `GitHub
|
|
28
|
+
<https://github.com/uw-it-aca/uw-restclients-r25>`_.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
# REST client for the UW R25 Web Service
|
|
2
2
|
|
|
3
|
-
[](https://github.com/uw-it-aca/uw-restclients-r25/actions)
|
|
4
4
|
[](https://coveralls.io/r/uw-it-aca/uw-restclients-r25?branch=main)
|
|
5
5
|
[](https://pypi.python.org/pypi/uw-restclients-r25)
|
|
6
|
-

|
|
8
7
|
|
|
9
8
|
Installation:
|
|
10
9
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: UW-RestClients-R25
|
|
3
|
+
Version: 0.6
|
|
4
|
+
Summary: A library for connecting to the UW R25 API
|
|
5
|
+
Home-page: https://github.com/uw-it-aca/uw-restclients-r25
|
|
6
|
+
Author: UWIT Student & Educational Technology Services
|
|
7
|
+
Author-email: aca-it@uw.edu
|
|
8
|
+
License: Apache License, Version 2.0
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: uw-restclients-core
|
|
15
|
+
Requires-Dist: lxml<5
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
See the README on `GitHub
|
|
28
|
+
<https://github.com/uw-it-aca/uw-restclients-r25>`_.
|
|
@@ -17,12 +17,12 @@ setup(
|
|
|
17
17
|
name='UW-RestClients-R25',
|
|
18
18
|
version=VERSION,
|
|
19
19
|
packages=['uw_r25'],
|
|
20
|
-
author="
|
|
20
|
+
author="UWIT Student & Educational Technology Services",
|
|
21
21
|
author_email="aca-it@uw.edu",
|
|
22
22
|
include_package_data=True,
|
|
23
23
|
install_requires=[
|
|
24
|
-
'
|
|
25
|
-
'lxml',
|
|
24
|
+
'uw-restclients-core',
|
|
25
|
+
'lxml<5',
|
|
26
26
|
],
|
|
27
27
|
license='Apache License, Version 2.0',
|
|
28
28
|
description=('A library for connecting to the UW R25 API'),
|
|
@@ -33,6 +33,5 @@ setup(
|
|
|
33
33
|
'License :: OSI Approved :: Apache Software License',
|
|
34
34
|
'Operating System :: OS Independent',
|
|
35
35
|
'Programming Language :: Python',
|
|
36
|
-
'Programming Language :: Python :: 3.6',
|
|
37
36
|
],
|
|
38
37
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.6
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2026 UW-IT, University of Washington
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
from unittest import TestCase
|
|
@@ -11,7 +11,7 @@ class R25TestDao(TestCase):
|
|
|
11
11
|
def test_custom_headers(self):
|
|
12
12
|
self.assertFalse(R25_DAO()._custom_headers('GET', '/', {}, None))
|
|
13
13
|
with override_settings(RESTCLIENTS_R25_BASIC_AUTH='b64here'):
|
|
14
|
-
self.
|
|
14
|
+
self.assertEqual(
|
|
15
15
|
R25_DAO()._custom_headers('GET', '/', {}, None),
|
|
16
16
|
{'Authorization': 'Basic b64here'}
|
|
17
17
|
)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Copyright 2026 UW-IT, University of Washington
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
from unittest import TestCase, skipIf
|
|
5
|
+
from commonconf import settings
|
|
6
|
+
from uw_r25.events import get_event_by_id, get_events
|
|
7
|
+
from uw_r25.util import fdao_r25_override
|
|
8
|
+
from restclients_core.exceptions import DataFailureException
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@fdao_r25_override
|
|
12
|
+
class R25TestEvents(TestCase):
|
|
13
|
+
|
|
14
|
+
def test_event_by_id(self):
|
|
15
|
+
event = get_event_by_id("100000")
|
|
16
|
+
self.assertEqual(event.event_id, "100000", "event_id")
|
|
17
|
+
self.assertEqual(event.name, "BOTHELL WINTER 2013 CABINET", "name")
|
|
18
|
+
self.assertEqual(event.title, "BOTHELL WINTER 2013 CABINET", "title")
|
|
19
|
+
self.assertEqual(event.alien_uid, None, "alien_uid")
|
|
20
|
+
self.assertEqual(event.start_date, "2013-01-01", "start_date")
|
|
21
|
+
self.assertEqual(event.end_date, "2013-03-28", "end_date")
|
|
22
|
+
self.assertEqual(event.state, "1", "state")
|
|
23
|
+
self.assertEqual(event.parent_id, None, "parent_id")
|
|
24
|
+
self.assertEqual(event.cabinet_id, event.event_id, "cabinet_id")
|
|
25
|
+
self.assertEqual(event.cabinet_name, event.name, "cabinet_name")
|
|
26
|
+
self.assertEqual(event.state_name(), "Tentative", "state_name")
|
|
27
|
+
self.assertEqual(len(event.reservations), 1, "reservations")
|
|
28
|
+
self.assertEqual(
|
|
29
|
+
len(event.binding_reservations), 1, "binding_reservations")
|
|
30
|
+
|
|
31
|
+
def test_parent_event(self):
|
|
32
|
+
event = get_event_by_id("100002")
|
|
33
|
+
parent = event.parent()
|
|
34
|
+
self.assertEqual(parent.event_id, event.parent_id, "parent_id")
|
|
35
|
+
|
|
36
|
+
# No parent event
|
|
37
|
+
parent2 = parent.parent()
|
|
38
|
+
self.assertEqual(parent2, None, "parent_id")
|
|
39
|
+
|
|
40
|
+
def test_child_events(self):
|
|
41
|
+
event = get_event_by_id("100000")
|
|
42
|
+
children = event.children()
|
|
43
|
+
self.assertEqual(len(children), 1, "child event count")
|
|
44
|
+
|
|
45
|
+
# No child events
|
|
46
|
+
child = children[0]
|
|
47
|
+
children = child.children()
|
|
48
|
+
self.assertEqual(len(children), 0, "child event count")
|
|
49
|
+
|
|
50
|
+
def test_cabinet_event(self):
|
|
51
|
+
event = get_event_by_id("100002")
|
|
52
|
+
cabinet = event.cabinet()
|
|
53
|
+
self.assertEqual(cabinet.event_id, event.cabinet_id, "cabinet_id")
|
|
54
|
+
|
|
55
|
+
# cabinet is self
|
|
56
|
+
cabinet2 = cabinet.cabinet()
|
|
57
|
+
self.assertEqual(cabinet2.event_id, cabinet.event_id, "cabinet_id")
|
|
58
|
+
|
|
59
|
+
def test_all_events(self):
|
|
60
|
+
events = get_events()
|
|
61
|
+
self.assertEqual(len(events), 3, "event count")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2026 UW-IT, University of Washington
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
from unittest import TestCase
|
|
@@ -13,10 +13,10 @@ class R25TestSpaces(TestCase):
|
|
|
13
13
|
|
|
14
14
|
def test_space_by_id(self):
|
|
15
15
|
space = get_space_by_id("1000")
|
|
16
|
-
self.
|
|
17
|
-
self.
|
|
18
|
-
self.
|
|
16
|
+
self.assertEqual(space.space_id, "1000", "space_id")
|
|
17
|
+
self.assertEqual(space.name, "ACC 120", "name")
|
|
18
|
+
self.assertEqual(space.formal_name, "Smith Hall", "formal_name")
|
|
19
19
|
|
|
20
20
|
def test_all_spaces(self):
|
|
21
21
|
spaces = get_spaces()
|
|
22
|
-
self.
|
|
22
|
+
self.assertEqual(len(spaces), 3, "space count")
|
UW-RestClients-R25-0.4/PKG-INFO
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.1
|
|
2
|
-
Name: UW-RestClients-R25
|
|
3
|
-
Version: 0.4
|
|
4
|
-
Summary: A library for connecting to the UW R25 API
|
|
5
|
-
Home-page: https://github.com/uw-it-aca/uw-restclients-r25
|
|
6
|
-
Author: UW-IT AXDD
|
|
7
|
-
Author-email: aca-it@uw.edu
|
|
8
|
-
License: Apache License, Version 2.0
|
|
9
|
-
Description:
|
|
10
|
-
See the README on `GitHub
|
|
11
|
-
<https://github.com/uw-it-aca/uw-restclients-r25>`_.
|
|
12
|
-
|
|
13
|
-
Platform: UNKNOWN
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.1
|
|
2
|
-
Name: UW-RestClients-R25
|
|
3
|
-
Version: 0.4
|
|
4
|
-
Summary: A library for connecting to the UW R25 API
|
|
5
|
-
Home-page: https://github.com/uw-it-aca/uw-restclients-r25
|
|
6
|
-
Author: UW-IT AXDD
|
|
7
|
-
Author-email: aca-it@uw.edu
|
|
8
|
-
License: Apache License, Version 2.0
|
|
9
|
-
Description:
|
|
10
|
-
See the README on `GitHub
|
|
11
|
-
<https://github.com/uw-it-aca/uw-restclients-r25>`_.
|
|
12
|
-
|
|
13
|
-
Platform: UNKNOWN
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.4
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Copyright 2021 UW-IT, University of Washington
|
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
from unittest import TestCase, skipIf
|
|
5
|
-
from commonconf import settings
|
|
6
|
-
from uw_r25.events import get_event_by_id, get_events
|
|
7
|
-
from uw_r25.util import fdao_r25_override
|
|
8
|
-
from restclients_core.exceptions import DataFailureException
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@fdao_r25_override
|
|
12
|
-
class R25TestEvents(TestCase):
|
|
13
|
-
|
|
14
|
-
def test_event_by_id(self):
|
|
15
|
-
event = get_event_by_id("100000")
|
|
16
|
-
self.assertEquals(event.event_id, "100000", "event_id")
|
|
17
|
-
self.assertEquals(event.name, "BOTHELL WINTER 2013 CABINET", "name")
|
|
18
|
-
self.assertEquals(event.title, "BOTHELL WINTER 2013 CABINET", "title")
|
|
19
|
-
self.assertEquals(event.alien_uid, None, "alien_uid")
|
|
20
|
-
self.assertEquals(event.start_date, "2013-01-01", "start_date")
|
|
21
|
-
self.assertEquals(event.end_date, "2013-03-28", "end_date")
|
|
22
|
-
self.assertEquals(event.state, "1", "state")
|
|
23
|
-
self.assertEquals(event.parent_id, None, "parent_id")
|
|
24
|
-
self.assertEquals(event.cabinet_id, event.event_id, "cabinet_id")
|
|
25
|
-
self.assertEquals(event.cabinet_name, event.name, "cabinet_name")
|
|
26
|
-
self.assertEquals(event.state_name(), "Tentative", "state_name")
|
|
27
|
-
self.assertEquals(len(event.reservations), 1, "reservations")
|
|
28
|
-
self.assertEquals(
|
|
29
|
-
len(event.binding_reservations), 1, "binding_reservations")
|
|
30
|
-
|
|
31
|
-
def test_parent_event(self):
|
|
32
|
-
event = get_event_by_id("100002")
|
|
33
|
-
parent = event.parent()
|
|
34
|
-
self.assertEquals(parent.event_id, event.parent_id, "parent_id")
|
|
35
|
-
|
|
36
|
-
# No parent event
|
|
37
|
-
parent2 = parent.parent()
|
|
38
|
-
self.assertEquals(parent2, None, "parent_id")
|
|
39
|
-
|
|
40
|
-
def test_child_events(self):
|
|
41
|
-
event = get_event_by_id("100000")
|
|
42
|
-
children = event.children()
|
|
43
|
-
self.assertEquals(len(children), 1, "child event count")
|
|
44
|
-
|
|
45
|
-
# No child events
|
|
46
|
-
child = children[0]
|
|
47
|
-
children = child.children()
|
|
48
|
-
self.assertEquals(len(children), 0, "child event count")
|
|
49
|
-
|
|
50
|
-
def test_cabinet_event(self):
|
|
51
|
-
event = get_event_by_id("100002")
|
|
52
|
-
cabinet = event.cabinet()
|
|
53
|
-
self.assertEquals(cabinet.event_id, event.cabinet_id, "cabinet_id")
|
|
54
|
-
|
|
55
|
-
# cabinet is self
|
|
56
|
-
cabinet2 = cabinet.cabinet()
|
|
57
|
-
self.assertEquals(cabinet2.event_id, cabinet.event_id, "cabinet_id")
|
|
58
|
-
|
|
59
|
-
def test_all_events(self):
|
|
60
|
-
events = get_events()
|
|
61
|
-
self.assertEquals(len(events), 3, "event count")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{UW-RestClients-R25-0.4 → uw_restclients_r25-0.6}/UW_RestClients_R25.egg-info/dependency_links.txt
RENAMED
|
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
|