Skip to content

Commit 3c25456

Browse files
committed
Fixed test
1 parent 2ed4f48 commit 3c25456

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,15 @@ def testDNSSEC(self):
126126
"""Test known good DNSSEC"""
127127
self.assertEqual(checkdmarc.dnssec.test_dnssec("fbi.gov"), True)
128128

129-
# TODO: Figure out ehy this passes on my system, but fails on GitHub Workflows
130129
@unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
131130
def testIncludeMissingSPF(self):
132131
"""A warning is included for SPF records that include domains that are missing SPF records"""
133132

134133
spf_record = "v=spf1 include:example.doesnotexist ~all"
135134
domain = "example.com"
136135
results = checkdmarc.spf.parse_spf_record(spf_record, domain)
137-
print(results)
138136
self.assertTrue(
139-
"example.local: The domain does not exist." in results["warnings"]
137+
"example.doesnotexist: The domain does not exist." in results["warnings"]
140138
)
141139

142140
@unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")

0 commit comments

Comments
 (0)