Skip to content

Commit 53e7893

Browse files
committed
Try and fix tests for GitHub
1 parent 5248078 commit 53e7893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ def testDNSSEC(self):
127127
self.assertEqual(checkdmarc.dnssec.test_dnssec("fbi.gov"), True)
128128

129129
# TODO: Figure out ehy this passes on my system, but fails on GitHub Workflows
130-
@unittest.skip("Not passing on GitHub Workflows")
130+
@unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
131131
def testIncludeMissingSPF(self):
132132
"""A warning is included for SPF records that include domains that are missing SPF records"""
133133

134-
spf_record = "v=spf1 include:example.local ~all"
134+
spf_record = "v=spf1 include:example.doesnotexist ~all"
135135
domain = "example.com"
136136
results = checkdmarc.spf.parse_spf_record(spf_record, domain)
137137
self.assertTrue(

0 commit comments

Comments
 (0)