Skip to content

Commit

Permalink
Update to match new Github Actions restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
janmayer committed Nov 19, 2020
1 parent 5ed94d1 commit c72fbe1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v2

- name: Setup conda
uses: conda-incubator/setup-miniconda@v1
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
Expand Down
11 changes: 6 additions & 5 deletions tests/core/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import hdtv.util


@pytest.mark.parametrize(
"cmdline, segs, last_suffix",
[
Expand All @@ -35,12 +36,12 @@
("a ; b", [["a"], ["b"]], ""),
(" a ; b", [["a"], ["b"]], ""),
("a;b c", [["a"], ["b", "c"]], ""),
("a;b \"c d\"", [["a"], ["b", "c d"]], ""),
("a \"b", [["a", "b"]], "\""),
("a \";", [["a", ";"]], "\""),
('a;b "c d"', [["a"], ["b", "c d"]], ""),
('a "b', [["a", "b"]], '"'),
('a ";', [["a", ";"]], '"'),
("a#b", [["a"]], ""),
("a \"\" a", [["a", "", "a"]], "")
]
('a "" a', [["a", "", "a"]], ""),
],
)
def test_SplitCmdlines(cmdline, segs, last_suffix):
res_segs, res_last_suffix = hdtv.util.SplitCmdlines(cmdline)
Expand Down

0 comments on commit c72fbe1

Please sign in to comment.