Skip to content
Snippets Groups Projects

TST: add test for query and some minor changes

Merged Henrik tom Wörden requested to merge f-query into dev
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • Henrik tom Wörden
  • 38 .add_property("first_name", value="A")
    39 .add_property("last_name", value="B"))
    40 assert query.lower() == "find record person with 'first_name'='a' and 'last_name'='b' "
    41
    42 query = IdentifiableAdapter.create_query_for_identifiable(
    43 db.Record(name="A").add_parent("B")
    44 .add_property("c", value="c")
    45 .add_property("d", value=5)
    46 .add_property("e", value=5.5)
    47 .add_property("f", value=datetime(2020, 10, 10))
    48 .add_property("g", value=True)
    49 .add_property("h", value=db.Record(id=1111))
    50 .add_property("i", value=[2222, db.Record(id=3333)]))
    51 assert (query.lower() == "find record b with name='a' and 'c'='c' and 'd'='5' and 'e'='5.5'"
    52 " and 'f'='2020-10-10t00:00:00' and 'g'='true' and 'h'='1111' and 'i'='2222' and "
    53 "'i'='3333' ")
  • Henrik tom Wörden
  • added 3 commits

    Compare with previous version

  • added 1 commit

    • 3aa6ee82 - TST: add aditional test case

    Compare with previous version

  • added 3 commits

    Compare with previous version

  • mentioned in commit de14c855

  • Please register or sign in to reply
    Loading