Skip to content

Commit

Permalink
more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Feb 11, 2024
1 parent d673061 commit 1b6bc52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
16 changes: 0 additions & 16 deletions tests/test_misc_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,6 @@ async def test_can_retrieve_events_when_simulating_transaction(
assert events[2].data.data == 9


@async_fixture(scope="module")
async def data_i16_keypair(program: Program) -> Keypair:
data = Keypair()
await program.rpc["test_i16"](
-2048,
ctx=Context(
accounts={"data": data.pubkey(), "rent": RENT},
pre_instructions=[
await program.account["DataI16"].create_instruction(data)
],
signers=[data],
),
)
return data


@mark.asyncio
async def test_can_use_i16_in_idl(program: Program, data_i16_keypair: Keypair) -> None:
data_account = await program.account["DataI16"].fetch(data_i16_keypair.pubkey())
Expand Down
21 changes: 0 additions & 21 deletions tests/test_misc_core_bankrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,27 +229,6 @@ async def test_can_use_i8_in_idl(program: Program, bankrun: ProgramTestContext)
assert data_account.data == -3


@async_fixture(scope="module")
async def data_i16_keypair(program: Program, bankrun: ProgramTestContext) -> Keypair:
data = Keypair()
await bankrun_rpc(
program,
"test_i16",
[-2048],
ctx=Context(
accounts={"data": data.pubkey(), "rent": RENT},
pre_instructions=[
await bankrun_create_instruction(
program.account["DataI16"], data, program.program_id, bankrun
)
],
signers=[data],
),
bankrun=bankrun,
)
return data


@mark.asyncio
async def test_can_use_i16_in_idl(
program: Program, data_i16_keypair: Keypair, bankrun: ProgramTestContext
Expand Down

0 comments on commit 1b6bc52

Please sign in to comment.