Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
5a6d8198
Commit
5a6d8198
authored
3 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-a-version-number-to-exports' into 'master'
Add a version number to exports Closes
#829
See merge request
!1462
parents
5aeacf08
806636cf
No related branches found
Branches containing commit
Tags
1.2.3-rc1
Tags containing commit
1 merge request
!1462
Add a version number to exports
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex/documents/export/structure.sql
+2
-0
2 additions, 0 deletions
arkindex/documents/export/structure.sql
arkindex/documents/tests/tasks/test_export.py
+5
-0
5 additions, 0 deletions
arkindex/documents/tests/tasks/test_export.py
with
7 additions
and
0 deletions
arkindex/documents/export/structure.sql
+
2
−
0
View file @
5a6d8198
PRAGMA
foreign_keys
=
ON
;
CREATE
TABLE
export_version
AS
SELECT
2
AS
version
;
CREATE
TABLE
image_server
(
id
VARCHAR
(
37
)
NOT
NULL
,
display_name
VARCHAR
(
250
)
NOT
NULL
,
...
...
This diff is collapsed.
Click to expand it.
arkindex/documents/tests/tasks/test_export.py
+
5
−
0
View file @
5a6d8198
...
...
@@ -27,6 +27,7 @@ from arkindex.project.tests import FixtureTestCase
from
ponos.models
import
Artifact
TABLE_NAMES
=
{
'
export_version
'
,
'
classification
'
,
'
element
'
,
'
element_path
'
,
...
...
@@ -143,6 +144,10 @@ class TestExport(FixtureTestCase):
[(
name
,
)
for
name
in
TABLE_NAMES
],
)
self
.
assertCountEqual
(
db
.
execute
(
"
SELECT version FROM export_version
"
).
fetchall
(),
[(
2
,
)]
)
self
.
assertCountEqual
(
db
.
execute
(
'
SELECT id, display_name, url, max_width, max_height FROM image_server
'
).
fetchall
(),
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment