Skip to content

Commit

Permalink
Merge pull request inveniosoftware#2 from greut/fixtures
Browse files Browse the repository at this point in the history
Fixtures from invenio_demosite.
  • Loading branch information
drjova committed May 16, 2014
2 parents ed690bc + adf121e commit b54da02
Show file tree
Hide file tree
Showing 14 changed files with 14,928 additions and 6 deletions.
2,585 changes: 2,585 additions & 0 deletions cds/base/democfgdata.sql

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions cds/base/fixtures/__init__.py
@@ -0,0 +1,10 @@
from .bibauthorid import *
from .bibclassify import *
from .bibexport import *
from .bibknowledge import *
from .bibrank import *
from .oai_harvest import *
from .webjournal import *
from .websearch import *
from .websession import *
from .websubmit import *
58 changes: 58 additions & 0 deletions cds/base/fixtures/bibauthorid.py
@@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
#
## This file is part of Invenio.
## Copyright (C) 2013 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

from fixture import DataSet


class AidPERSONIDDATAData(DataSet):

class AidPERSONIDDATA_1_uid:
tag = u'uid'
personid = 1L
data = u'2'

class AidPERSONIDDATA_2_uid:
tag = u'uid'
personid = 2L
data = u'1'

class AidPERSONIDDATA_3_uid:
tag = u'uid'
personid = 3L
data = u'4'

class AidPERSONIDDATA_4_uid:
tag = u'uid'
personid = 4L
data = u'5'

class AidPERSONIDDATA_5_uid:
tag = u'uid'
personid = 5L
data = u'6'

class AidPERSONIDDATA_6_uid:
tag = u'uid'
personid = 6L
data = u'7'

class AidPERSONIDDATA_7_uid:
tag = u'uid'
personid = 7L
data = u'8'
49 changes: 49 additions & 0 deletions cds/base/fixtures/bibclassify.py
@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#
## This file is part of Invenio.
## Copyright (C) 2013 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

from fixture import DataSet
from .websearch import CollectionData


class ClsMETHODData(DataSet):

class ClsMETHOD_1:
id = 1
last_updated = None
description = u'High Energy Physics Taxonomy'
name = u'HEP'
location = u'http://invenio-software.org/download/invenio-demo-site-files/HEP.rdf'

class ClsMETHOD_2:
id = 2
last_updated = None
description = u'NASA Subjects'
name = u'NASA-subjects'
location = u'http://invenio-software.org/download/invenio-demo-site-files/NASA-subjects.rdf'


class CollectionClsMETHODData(DataSet):

class CollectionClsMETHOD_12_2:
id_clsMETHOD = ClsMETHODData.ClsMETHOD_2.ref('id')
id_collection = CollectionData.experimentalPhysics.ref('id')

class CollectionClsMETHOD_2_1:
id_clsMETHOD = ClsMETHODData.ClsMETHOD_1.ref('id')
id_collection = CollectionData.preprints.ref('id')
23 changes: 20 additions & 3 deletions cds/testsuite/__init__.py → cds/base/fixtures/bibexport.py
@@ -1,7 +1,7 @@
# # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#
## This file is part of Invenio.
## Copyright (C) 2014 CERN.
## Copyright (C) 2013 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
Expand All @@ -15,4 +15,21 @@
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02D111-1307, USA.
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

from fixture import DataSet


class ExpJOBData(DataSet):

class ExpJOB_1:
id = 1L
jobname = u'sitemap'

class ExpJOB_2:
id = 2L
jobname = u'googlescholar'

class ExpJOB_3:
id = 3L
jobname = u'marcxml'

0 comments on commit b54da02

Please sign in to comment.