Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline scopes in json for db #577

Merged
merged 7 commits into from
Feb 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
simplify test
  • Loading branch information
pstokkink committed Feb 13, 2025

Verified

This commit was signed with the committer’s verified signature.
commit 161d968187c9a4b69802c7abcd9433cab07a4977
17 changes: 6 additions & 11 deletions tests/test_types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import json
import operator

import pytest
@@ -377,16 +376,12 @@ def test_scopes_comparison():


def test_scope_json_data():
assert scope_a.json_data() == json.loads(
"""
{
"id": "SCOPE/A",
"name": "scope A",
"owner": {"$ref": "publishers/BENK"},
"accessPackages": {"production": "p-scope_a", "nonProduction": "ot-scope_a"}
}
"""
)
assert scope_a.json_data() == {
"id": "SCOPE/A",
"name": "scope A",
"owner": {"$ref": "publishers/BENK"},
"accessPackages": {"production": "p-scope_a", "nonProduction": "ot-scope_a"},
}


def test_loading_scopes_from_dataset(schema_loader):