-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtest_rsync.py
More file actions
24 lines (17 loc) · 842 Bytes
/
test_rsync.py
File metadata and controls
24 lines (17 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import pytest
from pathlib import Path
from mock import PropertyMock, mock, MagicMock, patch
from pathlib import Path
from app.nautical_env import NauticalEnv
# class TestRsync:
# def test_rsync_commands(self, monkeypatch: pytest.MonkeyPatch):
# # Define the source location
# monkeypatch.setenv("DEST_LOCATION", "./tests/destination")
# monkeypatch.setenv("SOURCE_LOCATION", "./tests/source")
# env = NauticalEnv()
# SOURCE_LOCATION = env.SOURCE_LOCATION
# # Create directories and files
# Path(SOURCE_LOCATION, "container1").mkdir(parents=True, exist_ok=True)
# Path(SOURCE_LOCATION, "container1", "test.txt").touch()
# Path(SOURCE_LOCATION, "container2").mkdir(parents=True, exist_ok=True)
# Path(SOURCE_LOCATION, "container1", "test.txt").touch()