-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade SQLAlchemy Remove sqlalchemy-dst, update SQLAlchemy. * Update to compose v2 * Update ci.yml * Update ci.yml
- Loading branch information
Showing
5 changed files
with
77 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,25 +20,16 @@ jobs: | |
continue-on-error: true | ||
|
||
- name: Pull docker images | ||
run: docker-compose -f test/docker-compose.yml pull | ||
|
||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
|
||
run: docker compose -f test/docker-compose.yml pull | ||
|
||
- name: Build the Docker image | ||
run: docker-compose -f test/docker-compose.yml -p brainzutils_test build | ||
run: docker compose -f test/docker-compose.yml -p brainzutils_test build | ||
|
||
- name: Bring up dependencies | ||
run: docker-compose -f test/docker-compose.yml -p brainzutils_test up -d redis musicbrainz_db | ||
run: docker compose -f test/docker-compose.yml -p brainzutils_test up -d redis musicbrainz_db | ||
|
||
- name: Run tests | ||
run: docker-compose -f test/docker-compose.yml -p brainzutils_test run --rm test | ||
|
||
- name: Publish Unit Test Results | ||
uses: EnricoMi/[email protected] | ||
if: ${{ always() }} | ||
with: | ||
files: reports/test_results.xml | ||
|
||
run: docker compose -f test/docker-compose.yml -p brainzutils_test run --rm test | ||
|
||
- name: Bring down containers | ||
run: docker-compose -f test/docker-compose.yml -p brainzutils_test down | ||
run: docker compose -f test/docker-compose.yml -p brainzutils_test down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from datetime import datetime, date | ||
|
||
from brainzutils.musicbrainz_db.serialize import serialize_recording, serialize_artist_credit, serialize_editor | ||
from brainzutils.musicbrainz_db.test_data import recording_numb_encore_explicit, artistcredit_jay_z_linkin_park, \ | ||
editor_2 | ||
|
@@ -67,3 +69,22 @@ def test_serialize_editor(self): | |
editor = serialize_editor(editor_2) | ||
self.assertNotIn("password", editor) | ||
self.assertNotIn("ha1", editor) | ||
self.assertEqual(editor, { | ||
'id': 2324, | ||
'name': 'Editor 2', | ||
'privs': 3, | ||
'email': '[email protected]', | ||
'website': 'example.com', | ||
'bio': 'Random\neditor', | ||
'member_since': datetime(2014, 12, 1, 14, 6, 42, 321443), | ||
'email_confirm_date': datetime(2014, 12, 1, 14, 6, 42, 321443), | ||
'last_login_date': datetime(2014, 12, 1, 14, 6, 42, 321443), | ||
'last_updated': datetime(2014, 12, 1, 14, 6, 42, 321443), | ||
'birth_date': date(1999, 1, 1), | ||
'deleted': False, | ||
'gender': None, | ||
'area': { | ||
"mbid": "4479c385-74d8-4a2b-bdab-f48d1e6969ba", | ||
"name": "Hämeenlinna" | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,13 @@ Jinja2>=3.0 | |
itsdangerous>=2.0 | ||
click>=8.0 | ||
Werkzeug>=2.0 | ||
Flask-DebugToolbar>=0.13.1 | ||
Flask-DebugToolbar@git+https://github.com/amCap1712/flask-debugtoolbar.git@f42bb238cd3fbc79c51b93c341164c2be820025e | ||
Flask-UUID>=0.2 | ||
sentry-sdk[flask]>=1.5.8 | ||
certifi | ||
redis>=4.2.2 | ||
msgpack==0.5.6 | ||
requests>=2.27.1 | ||
SQLAlchemy>=1.3.16,<2.0 | ||
SQLAlchemy>=2.0 | ||
mbdata@git+https://github.com/acoustid/[email protected] | ||
sqlalchemy-dst>=1.0.1 | ||
importlib-metadata>=3.10.0;python_version<'3.10' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters