mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2024-11-16 21:29:24 +01:00
2cc1abedd7
Signed-off-by: wiseaidev <business@wiseai.dev>
19 lines
360 B
Python
19 lines
360 B
Python
"""Minimal test for infer_fs.
|
|
|
|
Mostly a test that it returns an object
|
|
"""
|
|
from tml.common.filesystem import (
|
|
infer_fs,
|
|
)
|
|
|
|
|
|
def test_infer_fs():
|
|
local_path = "/tmp/local_path"
|
|
gcs_path = "gs://somebucket/somepath"
|
|
|
|
local_fs = infer_fs(local_path)
|
|
gcs_fs = infer_fs(gcs_path)
|
|
|
|
# This should return two different objects
|
|
assert local_fs != gcs_fs
|