Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgsogo committed Aug 8, 2019
1 parent 160f7e8 commit 266d5f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions conans/test/functional/conan_api/curdir_kept_test.py
Expand Up @@ -2,7 +2,7 @@
import unittest

from conans.client import tools
from conans.client.conan_api import ConanAPIV1
from conans.client.conan_api import ConanAPIV1, ProfileData
from conans.test.utils.test_files import temp_folder


Expand All @@ -20,7 +20,10 @@ class Pkg(ConanFile):
# Needed to not write in the real computer cache
with tools.environment_append({"CONAN_USER_HOME": tmp_folder}):
api, _, _ = ConanAPIV1.factory()
api.create(".", name="lib", version="1.0", user="user", channel="channel")
empty_profile = ProfileData(None, None, None, None)
api.create(".", name="lib", version="1.0", user="user", channel="channel",
profile_host=empty_profile, profile_build=empty_profile)
self.assertEqual(tmp_folder, os.getcwd())
api.create(".", name="lib", version="1.0", user="user", channel="channel2")
api.create(".", name="lib", version="1.0", user="user", channel="channel2",
profile_host=empty_profile, profile_build=empty_profile)
self.assertEqual(tmp_folder, os.getcwd())

0 comments on commit 266d5f8

Please sign in to comment.