We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1524a3e commit 0a2cff2Copy full SHA for 0a2cff2
tests/unit/test_price.py
@@ -11,11 +11,11 @@ async def test_get_program_price_valid():
11
Test that the get_program_price method returns the correct PriceResponse
12
when given a valid item hash.
13
"""
14
- expected = PriceResponse(
15
- required_tokens=3.0555555555555556e-06,
16
- payment_type="superfluid",
17
- )
18
- mock_session = make_mock_get_session(expected.dict())
+ expected_response = {
+ "required_tokens": 3.0555555555555556e-06,
+ "payment_type": "superfluid",
+ }
+ mock_session = make_mock_get_session(expected_response)
19
async with mock_session:
20
response = await mock_session.get_program_price("cacacacacacaca")
21
assert response == PriceResponse(**expected_response) # type: ignore
0 commit comments