Exemple #1
0
    def setUp(self):
        self.expert_fixture = structure_fixtures.ProjectFixture()
        self.expert_manager = self.expert_fixture.owner
        self.expert_provider = factories.ExpertProviderFactory(customer=self.expert_fixture.customer)

        self.project_fixture = structure_fixtures.ProjectFixture()
        self.project = self.project_fixture.project
        self.expert_request = factories.ExpertRequestFactory(project=self.project)
        self.expert = self.project_fixture.admin
    def setUp(self):
        self.project_fixture = structure_fixtures.ProjectFixture()
        self.project_manager = self.project_fixture.manager
        self.customer_owner = self.project_fixture.owner
        self.project = self.project_fixture.project

        self.expert_fixture = structure_fixtures.ProjectFixture()
        self.expert_provider = factories.ExpertProviderFactory(customer=self.expert_fixture.customer)
        self.expert_manager = self.expert_fixture.owner

        self.backend_patcher = mock.patch('nodeconductor_assembly_waldur.support.backend.get_active_backend')
        self.backend_patcher.start()
Exemple #3
0
 def setUp(self):
     self.fixture = fixtures.ProjectFixture()
     self.admin = self.fixture.admin
     self.manager = self.fixture.manager
     self.project = self.fixture.project
     self.url = factories.ProjectFactory.get_url(self.project,
                                                 action='users')
Exemple #4
0
 def test_other_expert_manager_can_not_see_expert_bid(self):
     fixture = structure_fixtures.ProjectFixture()
     factories.ExpertProviderFactory(customer=fixture.customer)
     self.client.force_authenticate(fixture.owner)
     response = self.client.get(factories.ExpertBidFactory.get_list_url())
     self.assertEqual(response.status_code, status.HTTP_200_OK)
     self.assertEqual(len(response.data), 0)
Exemple #5
0
 def setUp(self):
     self.fixture = structure_fixtures.ProjectFixture()
     self.expert_request = factories.ExpertRequestFactory()
     self.expert_team = structure_factories.ProjectFactory()
     self.expert_contract = models.ExpertContract.objects.create(
         request=self.expert_request,
         team=self.expert_team,
     )
 def setUp(self):
     fixture = fixtures.ProjectFixture()
     self.staff = fixture.staff
     self.customer = fixture.customer
     self.admin = fixture.admin
     self.manager = fixture.manager
     self.project = fixture.project
     self.url = reverse('project_permission-list')
    def setUp(self):
        super(PriceEstimateLimitTest, self).setUp()
        self.fixture = structure_fixtures.ProjectFixture()

        self.project_estimate = models.PriceEstimate.objects.get(scope=self.fixture.project)
        self.project_estimate_url = factories.PriceEstimateFactory.get_url(self.project_estimate)

        self.customer_estimate = models.PriceEstimate.objects.get(scope=self.fixture.customer)
        self.customer_estimate_url = factories.PriceEstimateFactory.get_url(self.customer_estimate)
 def setUp(self):
     fixture = fixtures.ProjectFixture()
     self.project = fixture.project
     self.admin = fixture.admin
     self.manager = fixture.manager
 def setUp(self):
     self.fixture = fixtures.ProjectFixture()
     self.customer = self.fixture.customer
Exemple #10
0
 def setUp(self):
     self.fixture = structure_fixtures.ProjectFixture()
     self.expert_request = factories.OfferingFactory(
         project=self.fixture.project)
Exemple #11
0
 def setUp(self):
     self.fixture = fixtures.ProjectFixture()
     self.url = factories.CustomerFactory.get_url(self.fixture.customer, action='users')
Exemple #12
0
 def setUp(self):
     self.fixture = fixtures.ProjectFixture()
 def setUp(self):
     self.fixture = structure_fixtures.ProjectFixture()
Exemple #14
0
 def setUp(self):
     self.fixture = fixtures.ProjectFixture()
     self.quota = self.fixture.project.quotas.get(
         name=Project.Quotas.nc_app_count)
Exemple #15
0
 def setUp(self):
     self.fixture = fixtures.ProjectFixture()
     self.customer_url = factories.CustomerFactory.get_url(self.fixture.customer)
     self.client.force_authenticate(self.fixture.owner)