Skip to content

Commit f59e80f

Browse files
committed
[tags-update] Add more repo-smith tests
1 parent 0e49103 commit f59e80f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Add January duty roster
6+
id: start
7+
- type: tag
8+
tag-name: first-update
9+
- type: commit
10+
empty: true
11+
message: Update duty roster for February
12+
id: february-commit
13+
- type: commit
14+
empty: true
15+
message: Update roster for March
16+
id: march-commit
17+
- type: commit
18+
empty: true
19+
message: Update duty roster for April
20+
id: april-commit
21+
- type: tag
22+
tag-name: april-update
23+
- type: commit
24+
empty: true
25+
message: Update roster for May
26+
id: may-commit
27+
- type: tag
28+
tag-name: may-update

tags_update/tests/test_verify.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ def test_wrong_april_tag():
6565
assert_output(
6666
output, GitAutograderStatus.UNSUCCESSFUL, [WRONG_APRIL_TAG_COMMIT]
6767
)
68+
69+
70+
def test_first_update_tag_not_renamed():
71+
with loader.load("specs/first_update_tag_not_renamed.yml", "start") as output:
72+
assert_output(output, GitAutograderStatus.UNSUCCESSFUL, [OLD_FIRST_UPDATE_TAG, MISSING_JANUARY_TAG])

0 commit comments

Comments
 (0)