Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Merten
haskell-gargantext
Commits
99e38af8
Verified
Commit
99e38af8
authored
Oct 27, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tests] refactoring of node story tests
parent
a42dca01
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
95 deletions
+76
-95
Operations.hs
test/Test/Database/Operations.hs
+8
-8
NodeStory.hs
test/Test/Database/Operations/NodeStory.hs
+68
-87
No files found.
test/Test/Database/Operations.hs
View file @
99e38af8
...
@@ -75,14 +75,14 @@ nodeStoryTests = sequential $
...
@@ -75,14 +75,14 @@ nodeStoryTests = sequential $
around
setupDBAndCorpus
$
around
setupDBAndCorpus
$
describe
"Database - node story"
$
do
describe
"Database - node story"
$
do
describe
"Node story"
$
do
describe
"Node story"
$
do
it
"Can create a list"
createListTest
it
"
[#281]
Can create a list"
createListTest
it
"Can query node story"
queryNodeStoryTest
it
"
[#281]
Can query node story"
queryNodeStoryTest
it
"Can add new terms to node story"
insertNewTermsToNodeStoryTest
it
"
[#218]
Can add new terms to node story"
insertNewTermsToNodeStoryTest
it
"Can add new terms (with children) to node story"
insertNewTermsWithChildrenToNodeStoryTest
it
"
[#281]
Can add new terms (with children) to node story"
insertNewTermsWithChildrenToNodeStoryTest
it
"Fixes child terms to match parents' terms"
insertNodeStoryChildrenWithDifferentNgramsTypeThanParentTest
it
"
[#281]
Fixes child terms to match parents' terms"
insertNodeStoryChildrenWithDifferentNgramsTypeThanParentTest
it
"Can update node story when 'setListNgrams' is called"
setListNgramsUpdatesNodeStoryTest
it
"
[#281]
Can update node story when 'setListNgrams' is called"
setListNgramsUpdatesNodeStoryTest
it
"When 'setListNgrams' is called, childrens' parents are updated"
setListNgramsUpdatesNodeStoryWithChildrenTest
it
"
[#281]
When 'setListNgrams' is called, childrens' parents are updated"
setListNgramsUpdatesNodeStoryWithChildrenTest
it
"Correctly commits patches to node story - simple"
commitPatchSimpleTest
it
"
[#281]
Correctly commits patches to node story - simple"
commitPatchSimpleTest
where
where
setupDBAndCorpus
testsFunc
=
withTestDB
$
\
env
->
do
setupDBAndCorpus
testsFunc
=
withTestDB
$
\
env
->
do
setupEnvironment
env
setupEnvironment
env
...
...
test/Test/Database/Operations/NodeStory.hs
View file @
99e38af8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment