Skip to content

Commit

Permalink
Change testdata.json to testcases.json, issue evinism#155
Browse files Browse the repository at this point in the history
Signed-off-by: Ilona Shishov <[email protected]>
  • Loading branch information
IlonaShishov committed Sep 5, 2022
1 parent db4ccbc commit bb1c872
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/src/shared.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import assert from 'assert';
import { query } from '.';
import testdata from './shared/testdata.json';
import testcases from './shared/testcases.json';


const SELF_LANG_NAME = "js";

describe("Shared tests", () => {
testdata.data.forEach((block) => {
testcases.data.forEach((block) => {
describe(block.describe, () => {
block.cases.forEach((innerblock) => {
describe(innerblock.describe, () => {
Expand Down
6 changes: 3 additions & 3 deletions py/tests/test_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import pytest
from mistql import query

with open("shared/testdata.json", "rb") as f:
testdata = json.load(f)
with open("shared/testcases.json", "rb") as f:
testcases = json.load(f)


Case = Tuple[List[Tuple[str, Any, Any]], str, str, str, Optional[str]]
Expand All @@ -16,7 +16,7 @@
SELF_LANG_ID = "py"


for block in testdata["data"]:
for block in testcases["data"]:
for innerblock in block["cases"]:
for test in innerblock["cases"]:
if SELF_LANG_ID in test.get("skip", []):
Expand Down
File renamed without changes.

0 comments on commit bb1c872

Please sign in to comment.