Skip to content

Commit ec1b9db

Browse files
authored
Merge pull request #4 from PythonIreland/allynh_test_multiple_pycons
Find and test multiple PyCon .csv files.
2 parents 818d75a + 905fa5c commit ec1b9db

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pycons/2024/resources.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Presenter name:, Presentation name:, Presentation type:, Room number:, Repo location:, Slides location, videos:, contact,
2+
my_name, my cool presentation, talk, room 1, , , , ,

pycons/2025/resources.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Presenter name:, Presentation name:, Presentation type:, Room number:, Repo location:, Slides location, videos:,
2-
Ines Montani, Building AI with AI, keynote, 1, , https://speakerdeck.com/inesmontani/building-ai-with-ai, ,
1+
Presenter name:, Presentation name:, Presentation type:, Room number:, Repo location:, Slides location, videos:, contact,
2+
Ines Montani, Building AI with AI, keynote, 1, , https://speakerdeck.com/inesmontani/building-ai-with-ai, , https://ines.io/,

tests/test_csv.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def test_column_count() -> None:
2929
"""
3030
# TODO: Hard coded path for now:
3131
cwd: Path = Path.cwd()
32-
csv_realpath: Path = Path(f"{cwd}/pycons/2025/resources.csv")
33-
print(f"Testing file: {csv_realpath}")
34-
count_columns(csv_realpath)
32+
basedir: Path = Path(f"{cwd}/pycons/")
33+
csv_files: List[Path] = list(basedir.rglob("*/resources.csv"))
34+
print("\n")
35+
for cur_path in csv_files:
36+
print(f"Testing file: {cur_path}")
37+
count_columns(cur_path)

0 commit comments

Comments
 (0)