-
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.
refactor: generate test data for each cli parameter that we support
- Loading branch information
Joris Conijn
committed
Feb 5, 2022
1 parent
7565a0f
commit bee8914
Showing
3 changed files
with
102 additions
and
174 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
COMMIT2 = """commit my-hash-1 | ||
Author: John Doe <john@doe.nl> | ||
Date: Fri Jan 21 21:01:00 2022 +0100 | ||
feat: my first commit""" | ||
|
||
COMMIT1 = """commit my-hash-2 | ||
Author: John Doe <john@doe.nl> | ||
Date: Fri Jan 21 21:01:00 2022 +0100 | ||
feat: my second commit""" | ||
|
||
COMMITS = f"{COMMIT1}\n\n Issue #1\n\n{COMMIT2}\n\n Issue #2" | ||
COMMITS_NO_ISSUES = f"{COMMIT1}\n\n{COMMIT2}" | ||
|
||
SCENARIOS = [ | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-west-1", | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-central-1", | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS_NO_ISSUES, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-west-1", | ||
"my-other-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS_NO_ISSUES, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-central-1", | ||
"my-other-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-repository", | ||
"eu-central-1", | ||
None, | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::://my-profile@my-repository", | ||
None, | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::://my-repository", | ||
None, | ||
None, | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit://my-profile@my-repository", | ||
None, | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit://my-repository", | ||
None, | ||
None, | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
] |
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