Skip to content

Commit

Permalink
reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Nov 5, 2021
1 parent c5fa5c3 commit 39cc7bd
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import unittest
from conans.client.command import ERROR_INVALID_SYSTEM_REQUIREMENTS
from conans.test.utils.tools import TestClient


class InvalidSystemRequirementsTest(unittest.TestCase):
def test_create_method(self):
self.client = TestClient()
self.client.save({"conanfile.py": """
from conans import ConanFile
from conans.errors import ConanInvalidSystemRequirements
class MyPkg(ConanFile):
settings = "os", "compiler", "build_type", "arch"
def build_requirements(self):
raise ConanInvalidSystemRequirements("Some package missed")
"""})

error = self.client.run("create . name/ver@jgsogo/test", assert_error=True)
self.assertEqual(error, ERROR_INVALID_SYSTEM_REQUIREMENTS)
self.assertIn("Invalid system requirements: Some package missed", self.client.out)

0 comments on commit 39cc7bd

Please sign in to comment.