Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
melund committed Aug 12, 2021
1 parent 5d6d1ae commit 604158d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/test_abcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ def test_output_dataframe_with_time(self, init_simple_model):
app = AnyPyProcess(silent=True)
output: AnyPyProcessOutput = app.start_macro(macro)[0]
df = output.to_dataframe()
assert df.index.name == "Main.ArmModelStudy.Output.Abscissa.t"
assert df.shape == (100, 11)
assert df.shape == (100, 12)


def test_output_dataframe_without_time(self, init_simple_model):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def test_AnyPyProcessOutput_to_dataframe():
}
anypydata = AnyPyProcessOutput(data)
df = anypydata.to_dataframe()
assert df.shape == (6, 13)
assert df.shape == (6, 14)
df2 = anypydata.to_dataframe(index_var="speciel_length")
assert df2.shape == (5, 34)
assert df2.shape == (5, 35)
df3 = anypydata.to_dataframe(index_var=None)
assert df3.shape == (1, 39)

Expand Down

0 comments on commit 604158d

Please sign in to comment.