Skip to content

Commit

Permalink
test(rpc): update route tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CHr15F0x committed Jan 23, 2024
1 parent 94d61e1 commit 9078833
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions crates/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,9 @@ mod tests {

#[rustfmt::skip]
#[rstest::rstest]
#[case::root_api ("/", "v04/starknet_api_openrpc.json", &[])]
#[case::root_trace("/", "v04/starknet_trace_api_openrpc.json", &[])]
#[case::root_write("/", "v04/starknet_write_api.json", &[])]
#[case::root_api ("/", "v05/starknet_api_openrpc.json", &[])]
#[case::root_trace("/", "v05/starknet_trace_api_openrpc.json", &[])]
#[case::root_write("/", "v05/starknet_write_api.json", &[])]
#[case::root_pathfinder("/", "pathfinder_rpc_api.json", &["pathfinder_version"])]

#[case::v0_6_api ("/rpc/v0_6", "v06/starknet_api_openrpc.json", &[])]
Expand All @@ -850,15 +850,6 @@ mod tests {
#[case::v0_5_write("/rpc/v0_5", "v05/starknet_write_api.json", &[])]
#[case::v0_5_pathfinder("/rpc/v0_5", "pathfinder_rpc_api.json", &["pathfinder_version"])]

#[case::v04_api ("/rpc/v0.4", "v04/starknet_api_openrpc.json", &[])]
#[case::v04_trace("/rpc/v0.4", "v04/starknet_trace_api_openrpc.json", &[])]
#[case::v04_write("/rpc/v0.4", "v04/starknet_write_api.json", &[])]
#[case::v04_pathfinder("/rpc/v0.4", "pathfinder_rpc_api.json", &["pathfinder_version"])]
#[case::v0_4_api ("/rpc/v0_4", "v04/starknet_api_openrpc.json", &[])]
#[case::v0_4_trace("/rpc/v0_4", "v04/starknet_trace_api_openrpc.json", &[])]
#[case::v0_4_write("/rpc/v0_4", "v04/starknet_write_api.json", &[])]
#[case::v0_4_pathfinder("/rpc/v0_4", "pathfinder_rpc_api.json", &["pathfinder_version"])]

#[case::pathfinder("/rpc/pathfinder/v0.1", "pathfinder_rpc_api.json", &[])]

#[tokio::test]
Expand Down

0 comments on commit 9078833

Please sign in to comment.