A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix fixture organization
Michael Shamoon9a042118f9fd
diff --git a/src-ui/.gitignore b/src-ui/.gitignoreindex 963d2f8ee..5f427c51c 100644--- a/src-ui/.gitignore+++ b/src-ui/.gitignore@@ -45,4 +45,7 @@ testem.log# System Files.DS_StoreThumbs.db++# Cypresscypress/videos/**/*+cypress/screenshots/**/*diff --git a/src-ui/cypress/fixtures/manage/correspondents.json b/src-ui/cypress/fixtures/correspondents/correspondents.jsonsimilarity index 100%rename from src-ui/cypress/fixtures/manage/correspondents.jsonrename to src-ui/cypress/fixtures/correspondents/correspondents.jsondiff --git a/src-ui/cypress/fixtures/documents/doctypes.json b/src-ui/cypress/fixtures/document_types/doctypes.jsonsimilarity index 100%rename from src-ui/cypress/fixtures/documents/doctypes.jsonrename to src-ui/cypress/fixtures/document_types/doctypes.jsondiff --git a/src-ui/cypress/fixtures/documents/correspondents.json b/src-ui/cypress/fixtures/documents/correspondents.jsondeleted file mode 100644index 3337a268b..000000000--- a/src-ui/cypress/fixtures/documents/correspondents.json+++ /dev/null@@ -1 +0,0 @@-{"count":4,"next":"http://localhost:8000/api/correspondents/?page=2","previous":null,"results":[{"id":1,"slug":"abc-test-correspondent","name":"ABC Test Correspondent","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null},{"id":13,"slug":"corresp-10","name":"Corresp 10","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null},{"id":14,"slug":"corresp-11","name":"Corresp 11","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null},{"id":15,"slug":"corresp-12","name":"Corresp 12","match":"","matching_algorithm":1,"is_insensitive":true,"document_count":0,"last_correspondence":null}]}diff --git a/src-ui/cypress/fixtures/manage/tags.json b/src-ui/cypress/fixtures/manage/tags.jsondeleted file mode 100644index e48049f93..000000000--- a/src-ui/cypress/fixtures/manage/tags.json+++ /dev/null@@ -1 +0,0 @@-{"count":8,"next":null,"previous":null,"results":[{"id":4,"slug":"another-sample-tag","name":"Another Sample Tag","color":"#a6cee3","text_color":"#000000","match":"","matching_algorithm":6,"is_insensitive":true,"is_inbox_tag":false,"document_count":3},{"id":7,"slug":"newone","name":"NewOne","color":"#9e4ad1","text_color":"#ffffff","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":2},{"id":6,"slug":"partial-tag","name":"Partial Tag","color":"#72dba7","text_color":"#000000","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":1},{"id":2,"slug":"tag-2","name":"Tag 2","color":"#612db7","text_color":"#ffffff","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":3},{"id":3,"slug":"tag-3","name":"Tag 3","color":"#b2df8a","text_color":"#000000","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":4},{"id":5,"slug":"tagwithpartial","name":"TagWithPartial","color":"#3b2db4","text_color":"#ffffff","match":"","matching_algorithm":6,"is_insensitive":true,"is_inbox_tag":false,"document_count":2},{"id":8,"slug":"test-another","name":"Test Another","color":"#3ccea5","text_color":"#000000","match":"","matching_algorithm":4,"is_insensitive":true,"is_inbox_tag":false,"document_count":0},{"id":1,"slug":"test-tag","name":"Test Tag","color":"#fb9a99","text_color":"#000000","match":"","matching_algorithm":1,"is_insensitive":true,"is_inbox_tag":false,"document_count":4}]}diff --git a/src-ui/cypress/fixtures/settings/savedviews.json b/src-ui/cypress/fixtures/saved_views/savedviews.jsonsimilarity index 100%rename from src-ui/cypress/fixtures/settings/savedviews.jsonrename to src-ui/cypress/fixtures/saved_views/savedviews.jsondiff --git a/src-ui/cypress/fixtures/documents/tags.json b/src-ui/cypress/fixtures/tags/tags.jsonsimilarity index 100%rename from src-ui/cypress/fixtures/documents/tags.jsonrename to src-ui/cypress/fixtures/tags/tags.jsondiff --git a/src-ui/cypress/integration/documents-list.spec.ts b/src-ui/cypress/integration/documents-list.spec.tsindex 87889b9e9..5b923ed2f 100644--- a/src-ui/cypress/integration/documents-list.spec.ts+++ b/src-ui/cypress/integration/documents-list.spec.ts@@ -58,15 +58,15 @@ describe('documents-list', () => {})cy.intercept('http://localhost:8000/api/tags/*', {- fixture: 'documents/tags.json',+ fixture: 'tags/tags.json',})cy.intercept('http://localhost:8000/api/correspondents/*', {- fixture: 'documents/correspondents.json',+ fixture: 'correspondents/correspondents.json',})cy.intercept('http://localhost:8000/api/document_types/*', {- fixture: 'documents/doctypes.json',+ fixture: 'document_types/doctypes.json',})cy.visit('/documents')diff --git a/src-ui/cypress/integration/manage.spec.ts b/src-ui/cypress/integration/manage.spec.tsindex d0ed8240c..68562a744 100644--- a/src-ui/cypress/integration/manage.spec.ts+++ b/src-ui/cypress/integration/manage.spec.ts@@ -1,10 +1,10 @@describe('documents-list', () => {beforeEach(() => {cy.intercept('http://localhost:8000/api/correspondents/*', {- fixture: 'manage/correspondents.json',+ fixture: 'correspondents/correspondents.json',})cy.intercept('http://localhost:8000/api/tags/*', {- fixture: 'manage/tags.json',+ fixture: 'tags/tags.json',})})diff --git a/src-ui/cypress/integration/settings.spec.ts b/src-ui/cypress/integration/settings.spec.tsindex 5e0d2b8ff..88272ad4b 100644--- a/src-ui/cypress/integration/settings.spec.ts+++ b/src-ui/cypress/integration/settings.spec.ts@@ -3,7 +3,7 @@ describe('settings', () => {this.modifiedViews = []// mock API methods- cy.fixture('settings/savedviews.json').then((savedViewsJson) => {+ cy.fixture('saved_views/savedviews.json').then((savedViewsJson) => {// saved views PATCHcy.intercept('PATCH',