Skip to content

Commit

Permalink
change test dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Aug 26, 2024
1 parent 4cb9b4a commit a204b95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/check_output.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Run Jinja2 Tests

on: [push, pull_request]
on: [push]

jobs:
run-tests:
Expand All @@ -22,8 +22,4 @@ jobs:
- name: Run tests
run: |
python ./tests/runner.py
# this is not a verified test so we want a neutrally response
- name: End workflow neutrally
run: echo "Workflow finished."
python ./tests/runner.py
3 changes: 1 addition & 2 deletions tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def apply_template_to_json(template_path, json_path):
template_name = template_filename.replace('.j2', '')

# Set the corresponding test directory
test_dir = os.path.join('test', template_name)
print(os.path.abspath(test_dir))
test_dir = os.path.abspath(os.path.join('tests', template_name))

if not os.path.isdir(test_dir):
print(f"No test directory found for template {template_name}")
Expand Down

0 comments on commit a204b95

Please sign in to comment.