Skip to content

Commit

Permalink
This *should* just work tm - more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebagabones committed Dec 26, 2024
1 parent 4708119 commit 3f1ec81
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
40 changes: 20 additions & 20 deletions tests/__snapshots__/test_stuff.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,7 @@
Namespace(dir=False, inputFile=['inputFile'], templates_dir=None, output='.', no_warnings=False, verbose=False)
# ---
# name: test_lookForInclude
tuple(
list([
'tests/testFolder/staging/index.html',
'tests/testFolder/staging/myRack.html',
'tests/testFolder/staging/bonescrawlhome.html',
'tests/testFolder/staging/bonesrunhome.html',
'tests/testFolder/staging/bonesboundhome.html',
'tests/testFolder/staging/report.html',
'tests/testFolder/staging/template.html',
'tests/testFolder/staging/bonescallhome.html',
'tests/testFolder/staging/404.html',
'tests/testFolder/staging/emacsFiles.html',
'tests/testFolder/staging/Power7.html',
'tests/testFolder/staging/contact.html',
]),
list([
list([
'tests/testFolder/sites/index.html',
'tests/testFolder/sites/myRack.html',
Expand All @@ -62,10 +48,6 @@
'tests/testFolder/sites/Power7.html',
'tests/testFolder/sites/contact.html',
]),
)
# ---
# name: test_readfilesDir
tuple(
list([
'tests/testFolder/staging/index.html',
'tests/testFolder/staging/myRack.html',
Expand All @@ -80,6 +62,10 @@
'tests/testFolder/staging/Power7.html',
'tests/testFolder/staging/contact.html',
]),
])
# ---
# name: test_readfilesDir
list([
list([
'tests/testFolder/sites/index.html',
'tests/testFolder/sites/myRack.html',
Expand All @@ -94,7 +80,21 @@
'tests/testFolder/sites/Power7.html',
'tests/testFolder/sites/contact.html',
]),
)
list([
'tests/testFolder/staging/index.html',
'tests/testFolder/staging/myRack.html',
'tests/testFolder/staging/bonescrawlhome.html',
'tests/testFolder/staging/bonesrunhome.html',
'tests/testFolder/staging/bonesboundhome.html',
'tests/testFolder/staging/report.html',
'tests/testFolder/staging/template.html',
'tests/testFolder/staging/bonescallhome.html',
'tests/testFolder/staging/404.html',
'tests/testFolder/staging/emacsFiles.html',
'tests/testFolder/staging/Power7.html',
'tests/testFolder/staging/contact.html',
]),
])
# ---
# name: test_readfilesFile
tuple(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_stuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ def test_templates_output_infile(snapshot):
assert filecheck == snapshot

def test_readfilesDir(snapshot):
listFiles = ssri.getListOfFilesToSearchDir("tests/testFolder/staging", ["tests/testFolder/sites"], True, False )
listFiles = sorted(ssri.getListOfFilesToSearchDir("tests/testFolder/staging", ["tests/testFolder/sites"], True, False ))
assert listFiles == snapshot

def test_readfilesFile(snapshot):
listFiles = ssri.getListOfFilesToSearchFiles(["tests/testFolder/staging/emacsFiles.html"], ["tests/testFolder/sites"], "tests/testFolder/templates", False, 0, False)
assert listFiles == snapshot

def test_lookForInclude(snapshot):
inputFiles = ssri.getListOfFilesToSearchDir("tests/testFolder/staging", ["tests/testFolder/sites"], True, False)
inputFiles = sorted(ssri.getListOfFilesToSearchDir("tests/testFolder/staging", ["tests/testFolder/sites"], True, False))
assert inputFiles == snapshot


Expand Down

0 comments on commit 3f1ec81

Please sign in to comment.