예제 #1
0
    def test_reports_to_fk(self, account):
        dependent = AccountFactory.create(reports_to=account)

        assert account.reports_to is None
        assert dependent.reports_to == account
예제 #2
0
파일: test_views.py 프로젝트: luizalabs/hub
 def setUp(self):
     AccountFactory.create(tags=('python',))
     ProjectFactory.create_batch(2, tags=('python', 'golang'))
예제 #3
0
 def setUp(self):
     AccountFactory.create(tags=('python', ))
     ProjectFactory.create_batch(2, tags=('python', 'golang'))
예제 #4
0
    def test_reports_to_fk(self, account):
        dependent = AccountFactory.create(reports_to=account)

        assert account.reports_to is None
        assert dependent.reports_to == account