Skip to content

Commit 0b6dca7

Browse files
author
Maximilian Karl
committed
resolve test bug
1 parent 2b80f07 commit 0b6dca7

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

tests/test_github2pandas.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,10 @@ def test_files_to_dict(self):
5151

5252
def test_get_all_data_frames(self):
5353
repo_data_dir = Path(self.data_root_dir,self.git_repo_owner,self.git_repo_name)
54-
for files in GitHub2Pandas.Files.to_list():
55-
for file in files.to_list():
54+
for folder, files in GitHub2Pandas.Files.to_dict().items():
55+
for file in files:
5656
if file.endswith(".p"):
57-
df = GitHub2Pandas.get_pandas_data_frame(repo_data_dir, files.DATA_DIR, file)
57+
df = GitHub2Pandas.get_pandas_data_frame(repo_data_dir,folder,file)
5858

5959
if __name__ == "__main__":
60-
#unittest.main()
61-
files = GitHub2Pandas.Files.to_list()
62-
files = GitHub2Pandas.Files.to_dict()
63-
data_root_dir = Path("test_data")
64-
git_repo_name = "github2pandas"
65-
git_repo_owner = "TUBAF-IFI-DiPiT"
66-
GitHub2Pandas.save_tables_to_excel(Path(data_root_dir,git_repo_owner,git_repo_name))
67-
pass
60+
unittest.main()

0 commit comments

Comments
 (0)