Skip to content
Snippets Groups Projects

add tests for after/until/before/since keywords

Merged Timm Fitschen requested to merge f-query-transaction-filter into dev
3 unresolved threads

Summary

tests for caosdb-server!12 (merged) (Issue caosdb-server#132 (closed))

Focus

  • One further test in test_query.py
  • removed nose functions on the go

Test Environment

Nothing special. pipeline should be sufficient.

Check List for the Author

  • All automated tests pass
  • Reference related Issues
  • Up-to-date CHANGELOG.md
  • Annotations in code (Gitlab comments)
    • Intent of new code
    • Problems with old code
    • Why this implementation?

Check List for the Reviewer

  • I understand the intent of this MR
  • All automated tests pass
  • Up-to-date CHANGELOG.md
  • The test environment setup works and the intended behavior is reproducible in the test environment
  • In-code documentation and comments are up-to-date.
  • Check: Are there spezifications? Are they satisfied?

For further good practices have a look at our review guidelines.

Edited by Florian Spreckelsen

Merge request reports

Pipeline #8384 passed

Pipeline passed for 0cb30dd8 on f-query-transaction-filter

Merged by Florian SpreckelsenFlorian Spreckelsen 3 years ago (Jun 7, 2021 8:59am UTC)

Loading

Pipeline #8405 failed

Pipeline failed for 40550ad0 on dev

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
29 29
30 30 import os
31 31 import random
32 import caosdb as h
32 import caosdb as db
  • Timm Fitschen
  • 29 29
    30 30 import os
    31 31 import random
    32 import caosdb as h
    32 import caosdb as db
    33 33
    34 from pytest import mark
    35 from nose.tools import assert_true, assert_equal, assert_is_not_none
  • Timm Fitschen
  • 1234 1205 unique=True).id == file_3.id
    1235 1206
    1236 1207 file_4 = store_file("STORED")
    1237 assert h.execute_query(
    1208 assert db.execute_query(
    1238 1209 "FIND FILE WHICH IS STORED AT STORED",
    1239 1210 unique=True).id == file_4.id
    1240 1211
    1241 1212 file_5 = store_file("STORED AT") # hehe
    1242 assert h.execute_query(
    1213 assert db.execute_query(
    1243 1214 "FIND FILE WHICH IS STORED AT STORED AT",
    1244 1215 unique=True).id == file_5.id
    1216
    1217
    1218 def test_transaction_time():
  • Timm Fitschen marked the checklist item Up-to-date CHANGELOG.md as completed

    marked the checklist item Up-to-date CHANGELOG.md as completed

  • Timm Fitschen marked the checklist item Reference related Issues as completed

    marked the checklist item Reference related Issues as completed

  • Timm Fitschen marked the checklist item Annotations in code (Gitlab comments) as completed

    marked the checklist item Annotations in code (Gitlab comments) as completed

  • Florian Spreckelsen changed the description

    changed the description

  • Florian Spreckelsen marked the checklist item I understand the intent of this MR as completed

    marked the checklist item I understand the intent of this MR as completed

  • added 4 commits

    Compare with previous version

  • Florian Spreckelsen marked the checklist item All automated tests pass as completed

    marked the checklist item All automated tests pass as completed

  • Florian Spreckelsen marked the checklist item Up-to-date CHANGELOG.md as completed

    marked the checklist item Up-to-date CHANGELOG.md as completed

  • Florian Spreckelsen marked the checklist item In-code documentation and comments are up-to-date. as completed

    marked the checklist item In-code documentation and comments are up-to-date. as completed

  • Florian Spreckelsen marked the checklist item Check: Are there spezifications? Are they satisfied? as completed

    marked the checklist item Check: Are there spezifications? Are they satisfied? as completed

  • Florian Spreckelsen marked the checklist item The test environment setup works and the intended behavior is as completed

    marked the checklist item The test environment setup works and the intended behavior is as completed

  • mentioned in commit 40550ad0

  • Please register or sign in to reply
    Loading