Beispiel #1
0
    class Simple(Anod):

        test_qualifier_format = (("with_bar", False), )

        build_source_list = [
            Anod.Source("foo-src", publish=False),
            Anod.Source("bar-src", publish=True),
        ]

        @property
        def test_source_list(self):
            result = [Anod.Source("foo-test-src", publish=False)]
            if self.parsed_qualifier.get("with_bar"):
                result.append(Anod.Source("bar-test-src", publish=False))
            return result
Beispiel #2
0
 def test_source_list(self):
     result = [Anod.Source("foo-test-src", publish=False)]
     if self.parsed_qualifier.get("with_bar"):
         result.append(Anod.Source("bar-test-src", publish=False))
     return result