Skip to content

Commit

Permalink
Add test and three universities: Antwerp, CUHK, Concordia Ann Arbor
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjacob committed Oct 9, 2023
1 parent 19b9871 commit 85a690a
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- University data file has been optimised to reduce it in size and make
it easier to add new universities

### Added
- Add basic support for 3 universities: Antwerp, CUHK, Concordia Ann Arbor

## [0.9.12] - 2023-09-29

### Changed
Expand Down
4 changes: 3 additions & 1 deletion UNIVERSITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ These universities should be supported, but may be unstable in rare cases.

- Universidad Europea Madrid
- Universidad de Alcala
- University of Antwerp

### North America

Expand All @@ -84,6 +85,7 @@ These universities should be supported, but may be unstable in rare cases.
- Post University
- The University of Alabama
- Georgian College
- Concordia University Wisconsin & Ann Arbor

### South America

Expand All @@ -97,7 +99,7 @@ These universities should be supported, but may be unstable in rare cases.
### Asia

- Princess Nourah Bint Abdulrahman University

- The Chinese University of Hong Kong

### Australia

Expand Down
2 changes: 1 addition & 1 deletion blackboard_sync/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
__summary__ = "Automatic Syncing Of Your Blackboard Content"
__uri__ = "https://github.com/jacobszpz/BlackboardSync"

__version__ = "0.10.0-alpha.1"
__version__ = "0.10.0-alpha.2"

__author__ = "Jacob Sánchez"
__email__ = "jacobszpz@protonmail.com"
Expand Down
26 changes: 26 additions & 0 deletions blackboard_sync/universities.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,31 @@
"target_url": "https://learning.ulster.ac.uk/ultra/"
},
"api_url": "https://learning.ulster.ac.uk/"
},
{
"name": "University of Antwerp",
"short_name": "Universiteit Antwerpen",
"login": {
"start_url": "https://blackboard.uantwerpen.be",
"target_url": "https://blackboard.uantwerpen.be/webapps/portal/"
},
"api_url": "https://blackboard.uantwerpen.be/"
},
{
"name": "The Chinese University of Hong Kong",
"short_name": "CUHK",
"login": {
"start_url": "https://blackboard.cuhk.edu.hk",
"target_url": "https://blackboard.cuhk.edu.hk/ultra/"
},
"api_url": "https://blackboard.cuhk.edu.hk/"
},
{
"name": "Concordia University Wisconsin & Ann Arbor",
"login": {
"start_url": "https://concordia.blackboard.com",
"target_url": "https://concordia.blackboard.com/ultra/"
},
"api_url": "https://concordia.blackboard.com/"
}
]
7 changes: 7 additions & 0 deletions tests/test_institutions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from blackboard_sync.institutions import get_names

def test_institutions():
"""Test that the universities.json file has the expected format
and is correctly loaded."""
get_names()

0 comments on commit 85a690a

Please sign in to comment.