Skip to content

Commit e66062a

Browse files
committed
add additional testcase
1 parent 2db0348 commit e66062a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

saild/test/abortive.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
S: 220 localhost (Sail) ready
2+
C: EHLO test.domain
3+
S: 250-localhost (sail) greets test.domain
4+
S: 250 Help
5+
C: MAIL FROM:<[email protected]>
6+
S: 250 Okay
7+
C: RCPT TO:<snep@localhost>
8+
S: 250 Okay
9+
C: RCPT TO:<coati@localhost>
10+
S: 250 Okay
11+
C: RSET
12+
S: 250
13+
C: QUIT
14+
S: 221 localhost Goodbye

saild/test/integration_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import TextIO
55
from itertools import chain
66

7-
testfiles = ["happy_path.txt"]
7+
testfiles = ["happy_path.txt", "abortive.txt"]
88
process: subprocess.Popen = subprocess.Popen([shutil.which("cargo"), "run"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) # type: ignore
99
is_error: bool = True
1010

@@ -115,7 +115,7 @@ def test(sail_fd: TextIO, testfile_name: str, generate: bool, codes_only: bool):
115115
print(generated_text)
116116
with open(testfile_name, "w") as testfile:
117117
testfile.write(generated_text)
118-
print("Completed test with no problems :)")
118+
print(f"Completed test {testfile_name.split("/")[-1]} with no problems :)")
119119

120120
def run_tests(generate: bool, codes_only: bool):
121121
sail = start_sail()

0 commit comments

Comments
 (0)