Skip to content

Commit

Permalink
add equality test to col/ver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
briantist committed Oct 6, 2023
1 parent 247ce3d commit 547467a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions galactory/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@
from flask import Blueprint, jsonify

from .v2 import bp as v2
from .v3 import bp as v3

API_RESPONSE = {
'available_versions': {
'v2': 'v2/',
# 'v3': 'v3/',
},
'current_version': 'v2',
'description': 'GALAXY REST API',
}

bp = Blueprint('api', __name__, url_prefix='/api')
bp.register_blueprint(v2)
bp.register_blueprint(v3)

@bp.route('')
@bp.route('/')
Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/test_collectiondata.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def test_collectiondata_compare_versioninfo(

ver = semver.VersionInfo.parse(other_version)

assert (col == ver) == (col.semver == ver)
if col.is_prerelease == (ver.prerelease is not None):
assert (col < ver) == (col.semver < ver)
else:
Expand Down

0 comments on commit 547467a

Please sign in to comment.