Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsanj committed Sep 15, 2023
1 parent e261df9 commit f7f20f1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 115 deletions.
30 changes: 0 additions & 30 deletions papermill_origami/tests/conftest.py

This file was deleted.

51 changes: 0 additions & 51 deletions papermill_origami/tests/test_engine.py

This file was deleted.

30 changes: 0 additions & 30 deletions papermill_origami/tests/test_iorw.py

This file was deleted.

4 changes: 0 additions & 4 deletions papermill_origami/tests/test_papermill_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@
)
def test_engines_are_registered(name, expected_class):
assert papermill_engines.get_engine(name) == expected_class


def test_translator_is_registered():
assert papermill_translators.find_translator("python", "python") == DagsterTranslator
15 changes: 15 additions & 0 deletions papermill_origami/tests/test_path_util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pytest

from papermill_origami.path_util import parse_noteable_file_id_and_version_number


@pytest.mark.parametrize(
"url, file_id, version_number",
[
("https://app.noteable.io/f/fake_id/my-new-notebook.ipynb", "fake_id", None),
("https://app.noteable.io/f/fake_id", "fake_id", None),
("https://app.noteable.io/f/fake_id/v/12", "fake_id", 12),
],
)
def test_parse_noteable_file_id(url, file_id, version_number):
assert parse_noteable_file_id_and_version_number(url) == (file_id, version_number)

0 comments on commit f7f20f1

Please sign in to comment.