mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2024-11-16 13:19:23 +01:00
17 lines
353 B
Python
17 lines
353 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
|