-
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf6171d
commit 67a5619
Showing
14 changed files
with
190 additions
and
44 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
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,5 @@ | ||
FILE_TEXT1 : str = "This is a sample Text\n" | ||
|
||
KEY_DELAY : float = 0.05 # seconds | ||
OPERATION_DELAY : float = 0.3 # seconds | ||
CLOSE_DELAY : float = 0.3 # seconds |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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 @@ | ||
from pathlib import Path | ||
|
||
from core.base_test import GenericTestImpl | ||
from core.environment import Environment | ||
import core.test_constants as tconst | ||
import core.keys as keys | ||
|
||
TESTROOT = Path("copy_ops") | ||
DIR1 = TESTROOT / "dir1" | ||
DIR2 = TESTROOT / "dir2" | ||
FILE1 = DIR1 / "file1.txt" | ||
FILE1_COPY1 = DIR1 / "file1(1).txt" | ||
FILE1_COPY2 = DIR2 / "file1.txt" | ||
|
||
|
||
|
||
class CopyTest(GenericTestImpl): | ||
|
||
def __init__(self, test_env : Environment): | ||
super().__init__( | ||
test_env=test_env, | ||
test_root=TESTROOT, | ||
start_dir=DIR1, | ||
test_dirs=[DIR1, DIR2], | ||
test_files=[(FILE1, tconst.FILE_TEXT1)], | ||
key_inputs=[keys.KEY_CTRL_C, keys.KEY_CTRL_V], | ||
validation_files=[FILE1_COPY1] | ||
) |
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 @@ | ||
from pathlib import Path | ||
|
||
from core.base_test import GenericTestImpl | ||
from core.environment import Environment | ||
import core.test_constants as tconst | ||
import core.keys as keys | ||
|
||
TESTROOT = Path("cut_ops") | ||
DIR1 = TESTROOT / "dir1" | ||
DIR2 = TESTROOT / "dir2" | ||
FILE1 = DIR1 / "file1.txt" | ||
FILE1_CUT1 = DIR2 / "file1.txt" | ||
|
||
|
||
|
||
class CutTest(GenericTestImpl): | ||
|
||
def __init__(self, test_env : Environment): | ||
super().__init__( | ||
test_env=test_env, | ||
test_root=TESTROOT, | ||
start_dir=DIR1, | ||
test_dirs=[DIR1, DIR2], | ||
test_files=[(FILE1, tconst.FILE_TEXT1)], | ||
key_inputs=[keys.KEY_CTRL_X, keys.KEY_LEFT, keys.KEY_DOWN, | ||
keys.KEY_ENTER, keys.KEY_CTRL_V], | ||
validation_files=[FILE1_CUT1] | ||
) |