-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 Configure xdist group for session fixtures (#1312)
* 🧪 Configure xdist group for session fixtures * 🎨 Deduplicate * 🎨 * 🎨 Deduplicate with pytestmark * ✅ Fix test * 🎨 Fix pytest marking * 🎨 Linting * 🧪 Update pytest mark for trust registry e2e tests * 🔊 Add more context to log * ⚡ Split issuer tests across more xdist groups * ⚡ Adding missing xdist markers * ⚡ Tweak xdist groups * ⚡ Add new xdist group for test_tenants issuers * ⚡ Optimize xdist groups * 🎨 Deduplicate * 🎨 Rearrange log body
- Loading branch information
Showing
30 changed files
with
131 additions
and
195 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 |
---|---|---|
|
@@ -113,6 +113,7 @@ | |
"pyproject", | ||
"pypy", | ||
"pytest", | ||
"pytestmark", | ||
"PYTHONPATH", | ||
"pyyaml", | ||
"redoc", | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from aries_cloudcontroller import Credential, LDProofVCDetail, LDProofVCOptions | ||
|
||
from app.models.issuer import SendCredential | ||
|
||
|
||
def create_credential(proof_type: str) -> dict: | ||
return SendCredential( | ||
type="ld_proof", | ||
connection_id="", | ||
ld_credential_detail=LDProofVCDetail( | ||
credential=Credential( | ||
context=[ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://www.w3.org/2018/credentials/examples/v1", | ||
], | ||
type=["VerifiableCredential", "UniversityDegreeCredential"], | ||
credentialSubject={ | ||
"degree": { | ||
"type": "BachelorDegree", | ||
"name": "Bachelor of Science and Arts", | ||
}, | ||
"college": "Faber College", | ||
}, | ||
issuanceDate="2021-04-12", | ||
issuer="", | ||
), | ||
options=LDProofVCOptions(proofType=proof_type), | ||
), | ||
).model_dump(by_alias=True, exclude_unset=True) |
Oops, something went wrong.