aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-31 16:12:42 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-31 16:12:42 +0000
commit38f02f15781eb251cfd94f6467d2fc8e7fdf9556 (patch)
tree1a8b680497238a46ecf47cb7dc17856f087dc878 /tests
parentc74ea9e6b4af97be26029334868fa3264032c2d3 (diff)
More comprehensive cleanup and refactor
- **Removal of Unused Files and Directories:** Deleted multiple files and directories that were no longer in use, including configuration files (e.g., `.gitattributes`, `.gitlab-ci.yml`, Docker-related configurations, and documentation files). - **Script and Build Configuration Cleanup:** Removed deployment scripts and Dockerfiles that were outdated, redundant, or no longer aligned with current project requirements. - **Documentation Purge:** Cleared out the documentation directory, including various Sphinx configuration files and content, which are no longer deemed necessary for the project's current state. - **Localization Files Delete:** Removed translation files across multiple languages that were not in use, streamlining localization efforts. - **Test Files Deletion:** Cleaned up test-related files that had no relevance to the remaining codebase. This clean-up aims to enhance project clarity, reduce unnecessary clutter, and set the stage for a more efficient development environment moving forward.
Diffstat (limited to '')
-rw-r--r--tests/__init__.py0
-rw-r--r--tests/test_merge_production_dotenvs_in_dotenv.py34
2 files changed, 0 insertions, 34 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/tests/__init__.py
+++ /dev/null
diff --git a/tests/test_merge_production_dotenvs_in_dotenv.py b/tests/test_merge_production_dotenvs_in_dotenv.py
deleted file mode 100644
index c0e68f6..0000000
--- a/tests/test_merge_production_dotenvs_in_dotenv.py
+++ /dev/null
@@ -1,34 +0,0 @@
-from pathlib import Path
-
-import pytest
-
-from merge_production_dotenvs_in_dotenv import merge
-
-
-@pytest.mark.parametrize(
- ("input_contents", "expected_output"),
- [
- ([], ""),
- ([""], "\n"),
- (["JANE=doe"], "JANE=doe\n"),
- (["SEP=true", "AR=ator"], "SEP=true\nAR=ator\n"),
- (["A=0", "B=1", "C=2"], "A=0\nB=1\nC=2\n"),
- (["X=x\n", "Y=y", "Z=z\n"], "X=x\n\nY=y\nZ=z\n\n"),
- ],
-)
-def test_merge(
- tmp_path: Path,
- input_contents: list[str],
- expected_output: str,
-):
- output_file = tmp_path / ".env"
-
- files_to_merge = []
- for num, input_content in enumerate(input_contents, start=1):
- merge_file = tmp_path / f".service{num}"
- merge_file.write_text(input_content)
- files_to_merge.append(merge_file)
-
- merge(output_file, files_to_merge)
-
- assert output_file.read_text() == expected_output