mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2026-01-06 12:21:30 +00:00
Skip posix_path test on Windows (#283)
This commit is contained in:
parent
a79b365ab4
commit
e61ce2cc00
@ -2,6 +2,7 @@ import csv
|
||||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import platform
|
||||
import pytest
|
||||
|
||||
import pandas as pd
|
||||
@ -79,6 +80,9 @@ def test_convert_to_dataframe():
|
||||
assert df.text.equals(expected_df.text) is True
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
platform.system() == "Windows", reason="Posix Paths are not available on Windows"
|
||||
)
|
||||
def test_convert_to_isd_serializes_with_posix_paths():
|
||||
metadata = ElementMetadata(filename=pathlib.PosixPath("../../fake-file.txt"))
|
||||
elements = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user