generated from UCSD-E4E/python-repo-example
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into 23-e4edm-results-in-e…
…rror-thrown
- Loading branch information
Showing
6 changed files
with
51 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'''Tests for the status output | ||
''' | ||
import re | ||
from pathlib import Path | ||
from typing import Tuple | ||
from unittest.mock import Mock | ||
|
||
from e4e_data_management.core import DataManager | ||
|
||
|
||
def test_readme_staging(single_mission: Tuple[Mock, DataManager, Path], test_readme: Path): | ||
"""Tests that a staged README file is displayed in the status output | ||
Args: | ||
single_mission (Tuple[Mock, DataManager, Path]): Single mission test app | ||
test_readme (Path): Test Readme file | ||
""" | ||
_, app, _ = single_mission | ||
|
||
app.add([test_readme], readme=True) | ||
|
||
status_output = app.status() | ||
|
||
regex = r"readme\.md|readme\.docx" | ||
|
||
matches = re.findall(regex, status_output, re.MULTILINE | re.IGNORECASE) | ||
|
||
assert len(matches) != 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters