예제 #1
0
    def setUp(self):
        super(TestSerializingPopulatedDashboard, self).setUp()
        self.dash = DashboardFactory()
        self.user = self.dash.creator
        self.auth = AuthFactory(user=self.user)

        self.init_dash_hgrid = rubeus.to_project_hgrid(self.dash, self.auth)
예제 #2
0
 def setUp(self):
     super(TestSerializingNodeWithAddon, self).setUp()
     self.auth = AuthFactory()
     self.project = ProjectFactory(creator=self.auth.user)
     self.project.get_addons = mock.Mock()
     self.project.get_addons.return_value = [mock_addon]
     self.serializer = rubeus.NodeFileCollector(node=self.project, auth=self.auth)
예제 #3
0
파일: test_auth.py 프로젝트: scooley/osf.io
 def test_factory(self):
     auth_obj = AuthFactory()
     assert_true(isinstance(auth_obj.user, auth.User))
예제 #4
0
파일: test_auth.py 프로젝트: scooley/osf.io
 def test_repr(self):
     auth = AuthFactory()
     rep = repr(auth)
     assert_in(str(auth.user), rep)
예제 #5
0
 def setUp(self):
     super(TestSmartFolderViews, self).setUp()
     self.dash = DashboardFactory()
     self.user = self.dash.creator
     self.auth = AuthFactory(user=self.user)
예제 #6
0
 def setUp(self):
     super(TestSerializingFolders, self).setUp()
     self.user = UserFactory()
     self.auth = AuthFactory(user=self.user)
예제 #7
0
 def setUp(self):
     super(TestSerializingEmptyDashboard, self).setUp()
     self.dash = DashboardFactory()
     self.auth = AuthFactory(user=self.dash.creator)
     self.dash_hgrid = rubeus.to_project_hgrid(self.dash, self.auth)