From 905fa5ca152c5c18a818866643d9baad44ec403b Mon Sep 17 00:00:00 2001 From: AllynH Date: Fri, 21 Nov 2025 09:31:21 +0000 Subject: [PATCH] Find and test multiple PyCon .csv files. --- pycons/2024/resources.csv | 2 ++ pycons/2025/resources.csv | 4 ++-- tests/test_csv.py | 9 ++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 pycons/2024/resources.csv diff --git a/pycons/2024/resources.csv b/pycons/2024/resources.csv new file mode 100644 index 0000000..ab69516 --- /dev/null +++ b/pycons/2024/resources.csv @@ -0,0 +1,2 @@ +Presenter name:, Presentation name:, Presentation type:, Room number:, Repo location:, Slides location, videos:, contact, +my_name, my cool presentation, talk, room 1, , , , , \ No newline at end of file diff --git a/pycons/2025/resources.csv b/pycons/2025/resources.csv index e5d391f..a4b85d5 100644 --- a/pycons/2025/resources.csv +++ b/pycons/2025/resources.csv @@ -1,2 +1,2 @@ -Presenter name:, Presentation name:, Presentation type:, Room number:, Repo location:, Slides location, videos:, -Ines Montani, Building AI with AI, keynote, 1, , https://speakerdeck.com/inesmontani/building-ai-with-ai, , +Presenter name:, Presentation name:, Presentation type:, Room number:, Repo location:, Slides location, videos:, contact, +Ines Montani, Building AI with AI, keynote, 1, , https://speakerdeck.com/inesmontani/building-ai-with-ai, , https://ines.io/, diff --git a/tests/test_csv.py b/tests/test_csv.py index 7e8351a..e1b4071 100644 --- a/tests/test_csv.py +++ b/tests/test_csv.py @@ -29,6 +29,9 @@ def test_column_count() -> None: """ # TODO: Hard coded path for now: cwd: Path = Path.cwd() - csv_realpath: Path = Path(f"{cwd}/pycons/2025/resources.csv") - print(f"Testing file: {csv_realpath}") - count_columns(csv_realpath) + basedir: Path = Path(f"{cwd}/pycons/") + csv_files: List[Path] = list(basedir.rglob("*/resources.csv")) + print("\n") + for cur_path in csv_files: + print(f"Testing file: {cur_path}") + count_columns(cur_path)