import os

from . import tmp_dir_fixture  # NOQA


def test_uri_property(tmp_dir_fixture):  # NOQA

    from dtoolcore import _BaseDataSet

    admin_metadata = {
        "name": os.path.basename(tmp_dir_fixture),
        "uuid": "1234",
    }
    base_ds = _BaseDataSet(tmp_dir_fixture, admin_metadata, None)

    expected_uri = "file://localhost{}".format(tmp_dir_fixture)
    assert base_ds.uri == expected_uri

import os

from . import tmp_uri_fixture  # NOQA


def test_uri_property(tmp_uri_fixture):  # NOQA

    from dtoolcore import _BaseDataSet

    admin_metadata = {
        "name": os.path.basename(tmp_uri_fixture),
        "uuid": "1234",
    }
    base_ds = _BaseDataSet(tmp_uri_fixture, admin_metadata, None)

    assert base_ds.uri == tmp_uri_fixture

Fix windows issue with test_uri_property
Fix windows issue with test_uri_property

  import os
  
- from . import tmp_dir_fixture  # NOQA
+ from . import tmp_uri_fixture  # NOQA
  
  
- def test_uri_property(tmp_dir_fixture):  # NOQA
+ def test_uri_property(tmp_uri_fixture):  # NOQA
  
      from dtoolcore import _BaseDataSet
  
      admin_metadata = {
-         "name": os.path.basename(tmp_dir_fixture),
+         "name": os.path.basename(tmp_uri_fixture),
          "uuid": "1234",
      }
-     base_ds = _BaseDataSet(tmp_dir_fixture, admin_metadata, None)
+     base_ds = _BaseDataSet(tmp_uri_fixture, admin_metadata, None)
  
-     expected_uri = "file://localhost{}".format(tmp_dir_fixture)
-     assert base_ds.uri == expected_uri
+     assert base_ds.uri == tmp_uri_fixture
  
Fix windows issue with test_uri_property
## Code Before:
import os

from . import tmp_dir_fixture  # NOQA


def test_uri_property(tmp_dir_fixture):  # NOQA

    from dtoolcore import _BaseDataSet

    admin_metadata = {
        "name": os.path.basename(tmp_dir_fixture),
        "uuid": "1234",
    }
    base_ds = _BaseDataSet(tmp_dir_fixture, admin_metadata, None)

    expected_uri = "file://localhost{}".format(tmp_dir_fixture)
    assert base_ds.uri == expected_uri

## Instruction:
Fix windows issue with test_uri_property
## Code After:
import os

from . import tmp_uri_fixture  # NOQA


def test_uri_property(tmp_uri_fixture):  # NOQA

    from dtoolcore import _BaseDataSet

    admin_metadata = {
        "name": os.path.basename(tmp_uri_fixture),
        "uuid": "1234",
    }
    base_ds = _BaseDataSet(tmp_uri_fixture, admin_metadata, None)

    assert base_ds.uri == tmp_uri_fixture
