Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display user/channel correctly in export output (#8732)
* display user/channel correctly in export output * add test
- Loading branch information
1 parent
2f7de1b
commit a78b3ab
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import textwrap | ||
|
||
from conans.test.utils.tools import TestClient | ||
|
||
|
||
def test_basic(): | ||
client = TestClient() | ||
conanfile = textwrap.dedent(""" | ||
from conans import ConanFile | ||
class TestConan(ConanFile): | ||
name = "hello" | ||
version = "1.2" | ||
default_user = "myuser" | ||
default_channel = "mychannel" | ||
""") | ||
client.save({"conanfile.py": conanfile}) | ||
client.run("export .") | ||
assert "hello/1.2@myuser/mychannel" in client.out | ||
client.run("search *") | ||
assert "hello/1.2@myuser/mychannel" in client.out | ||
client.run("create .") | ||
assert "hello/1.2@myuser/mychannel" in client.out | ||
assert "hello/1.2:" not in client.out |