Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test #27

Merged
merged 26 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9904c73
Added vscode setup to .gitignore
Olthoff231381 Jul 31, 2024
2ed15b1
First Tests written for inout.py
Olthoff231381 Jul 31, 2024
79c94fb
CI Test Workflow
Olthoff231381 Jul 31, 2024
724d61e
CI Test Workflow
Olthoff231381 Jul 31, 2024
b12da10
CI Proper Test Workflow
Olthoff231381 Jul 31, 2024
6ff3056
Change in ci.yml
Olthoff231381 Jul 31, 2024
c27a919
More changes in ci.yml
Olthoff231381 Jul 31, 2024
9de7e9d
Update ci.yml
Olthoff231381 Jul 31, 2024
801eb28
detleted rum pytest from ci.yml
Olthoff231381 Jul 31, 2024
3805c7a
Merge branch 'ciIntegration' of github.com:ssciwr/mailcom into ciInte…
Olthoff231381 Jul 31, 2024
5fa0f97
detleted first line from ci.yml
Olthoff231381 Jul 31, 2024
c9beb3a
deleted comments from ci.yml
Olthoff231381 Jul 31, 2024
ec4ebd9
deleted workflow dispatch from ci.yml
Olthoff231381 Jul 31, 2024
ca9d970
chaged [on] from ci.yml
Olthoff231381 Jul 31, 2024
8bdb0e7
chaged [on] from ci.yml
Olthoff231381 Jul 31, 2024
a37ce7c
added pytest to ci.yml
Olthoff231381 Jul 31, 2024
7e2b5ac
changed setup-python to v5 ci.yml
Olthoff231381 Jul 31, 2024
83417f4
deleted pytest from ci.yml
Olthoff231381 Jul 31, 2024
0bb290a
pytest for ci.yml
Olthoff231381 Jul 31, 2024
19aa0aa
pytest for ci.yml
Olthoff231381 Jul 31, 2024
de7ce1b
fixed path var
Olthoff231381 Jul 31, 2024
da743ba
fixed typo in path var
Olthoff231381 Jul 31, 2024
08cc188
changed ci.yml for better readability
Olthoff231381 Jul 31, 2024
e8caf4c
deleted the demo
Olthoff231381 Jul 31, 2024
bb0d6fd
Update ci.yml
Olthoff231381 Jul 31, 2024
03880e7
Merge pull request #28 from ssciwr/ciIntegration
Olthoff231381 Jul 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# VSCode Config
.vscode/

# IPython
profile_default/
ipython_config.py
Expand Down
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

9 changes: 9 additions & 0 deletions mailcom/test/test_inout.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from mailcom.inout import list_of_files

def test_list_of_files_found(tmp_path):
p = tmp_path / "test.eml"
p.write_text("test")
assert len(list_of_files(tmp_path)) != 0, "The list is empty"

def test_list_of_files_empty(tmp_path):
assert len(list_of_files(tmp_path)) == 0, "The list is not empty"