-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
fe1d923
commit 10bbfd5
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
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,30 @@ | ||
from fractions import Fraction | ||
import os | ||
import json | ||
|
||
import vidformer | ||
import pandas as pd | ||
|
||
|
||
def test_http_path(): | ||
import vidformer as vf | ||
from fractions import Fraction | ||
|
||
server = vf.YrdenServer(bin="../target/debug/vidformer-cli") | ||
tos = vidformer.Source( | ||
server, "tos_720p-XYZ", "https://f.dominik.win/data/dve2/tos_720p.mp4", 0 | ||
) | ||
|
||
assert tos._server == server | ||
assert tos._name == "tos_720p-XYZ" | ||
assert tos._path == "data/dve2/tos_720p.mp4" | ||
assert tos._stream == 0 | ||
assert type(tos._service) == vf.StorageService | ||
assert tos._service._service == "http" | ||
assert type(tos._service._config) == dict | ||
assert len(tos._service._config) == 1 | ||
assert tos._service._config["endpoint"] == "https://f.dominik.win" | ||
|
||
# run these to make sure they don't crash | ||
tos.ts() | ||
tos.fmt() |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "vidformer-cli" | ||
version = "0.5.3" | ||
version = "0.5.4" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "vidformer" | ||
version = "0.5.3" | ||
version = "0.5.4" | ||
description = "A data-systems focused library for declarative video synthesis." | ||
authors = ["Dominik Winecki <[email protected]>"] | ||
edition = "2021" | ||
|