void () { runPythonTest(new PyDebuggerTask("/debug", "test_shapes.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 39); } @Override public void testing() throws Exception { waitForPause(); List<PyDebugValue> frameVariables = loadFrame(); PyDebugValue var = findDebugValueByName(frameVariables, "list1"); assertEquals("120", var.getShape()); var = findDebugValueByName(frameVariables, "dict1"); assertEquals("2", var.getShape()); var = findDebugValueByName(frameVariables, "custom"); assertEquals("5", var.getShape()); var = findDebugValueByName(frameVariables, "df1"); assertEquals("(3, 6)", var.getShape()); var = findDebugValueByName(frameVariables, "n_array"); assertEquals("(3, 2)", var.getShape()); var = findDebugValueByName(frameVariables, "series"); assertEquals("(5,)", var.getShape()); var = findDebugValueByName(frameVariables, "custom_shape"); assertEquals("(3,)", var.getShape()); var = findDebugValueByName(frameVariables, "custom_shape2"); assertEquals("(2, 3)", var.getShape()); resume(); waitForTerminate(); } @NotNull @Override public Set<String> getTags() { return Collections.singleton("pandas"); } }); }