Skip to content

Commit

Permalink
fix(tests): updated type of test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePyProgrammer committed Aug 21, 2023
1 parent c33e43a commit cdfe6bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Binary file added tests/sample_data/processed2.xlsx
Binary file not shown.
16 changes: 8 additions & 8 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,28 @@ def test_excel(self):
self.assertTrue(df.equals(df_test_name_name_name), "Name-Name-Name Read Test (identity) Failed")

df_test_index_index_index = read_excel("tests/sample_data/manipulated.xlsx", 1, 3, 0)
self.assertTrue(df.equals(df_test_index_index_index), "Index-Index-Index Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_index_index_index), "Index-Index-Index Read Test (manipulated) Failed")

df_test_index_index_name = read_excel("tests/sample_data/manipulated.xlsx", 1, 3, "manipulated")
self.assertTrue(df.equals(df_test_index_index_name), "Index-Index-Name Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_index_index_name), "Index-Index-Name Read Test (manipulated) Failed")

df_test_index_name_index = read_excel("tests/sample_data/manipulated.xlsx", 1, "flux", 0)
self.assertTrue(df.equals(df_test_index_name_index), "Index-Name-Index Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_index_name_index), "Index-Name-Index Read Test (manipulated) Failed")

df_test_index_name_name = read_excel("tests/sample_data/manipulated.xlsx", 1, "flux", "manipulated")
self.assertTrue(df.equals(df_test_index_name_name), "Index-Name-Name Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_index_name_name), "Index-Name-Name Read Test (manipulated) Failed")

df_test_name_index_index = read_excel("tests/sample_data/manipulated.xlsx", "time", 3, 0)
self.assertTrue(df.equals(df_test_name_index_index), "Name-Index-Index Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_name_index_index), "Name-Index-Index Read Test (manipulated) Failed")

df_test_name_index_name = read_excel("tests/sample_data/manipulated.xlsx", "time", 3, "manipulated")
self.assertTrue(df.equals(df_test_name_index_name), "Name-Index-Name Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_name_index_name), "Name-Index-Name Read Test (manipulated) Failed")

df_test_name_name_index = read_excel("tests/sample_data/manipulated.xlsx", "time", "flux", 0)
self.assertTrue(df.equals(df_test_name_name_index), "Name-Name-Index Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_name_name_index), "Name-Name-Index Read Test (manipulated) Failed")

df_test_name_name_name = read_excel("tests/sample_data/manipulated.xlsx", "time", "flux", "manipulated")
self.assertTrue(df.equals(df_test_name_name_name), "Name-Name-Name Read Test (identity) Failed")
self.assertTrue(df.equals(df_test_name_name_name), "Name-Name-Name Read Test (manipulated) Failed")

def test_json(self):
df = pd.read_csv("tests/sample_data/processed.csv")
Expand Down

0 comments on commit cdfe6bc

Please sign in to comment.