Skip to content

Commit

Permalink
Fixed win tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Dec 16, 2023
1 parent 6fe977b commit 9eabcfc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dplib/models/resource/__spec__/test_resource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

import pytest
from pydantic import ValidationError

Expand Down Expand Up @@ -64,13 +66,13 @@ def test_resource_profile():
def test_resource_get_fullpath():
resource = Resource.from_path("data/resource.json")
fullpath = resource.get_fullpath()
assert fullpath == "data/table.csv"
assert fullpath == str(Path("data/table.csv"))


def test_resource_get_fullpath_with_basepath():
resource = Resource(path="table.csv", basepath="data")
fullpath = resource.get_fullpath()
assert fullpath == "data/table.csv"
assert fullpath == str(Path("data/table.csv"))


def test_resource_get_source():
Expand Down

0 comments on commit 9eabcfc

Please sign in to comment.