-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
15 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |