Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/m/o/moztrap-HEAD/tests/view/lists/test_finder.py   moztrap(Download)
    def test_no_parent_relationship(self):
        """If no relationship to parent model is found, raises ValueError."""
        from moztrap.view.lists.finder import Finder, Column
 
        class BadFinder(Finder):
            columns = [
                Column(
                    "products",
                    self.model.Product.objects.all()
                    ),
                Column("runs", "_runs.html", self.model.Run.objects.all()),
                ]
 
    def column(self):
        from moztrap.view.lists.finder import Column
        return Column