Skip to content

Commit a75b6b4

Browse files
Add basic tests for permissive join and restriction.
1 parent 1a35ad0 commit a75b6b4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

LNX-docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# docker-compose -f LNX-docker-compose.yml --env-file LNX.env up --build --exit-code-from app
1+
# docker-compose -f LNX-docker-compose.yml --env-file LNX.env up --exit-code-from app --build
22
version: '2.2'
33
x-net: &net
44
networks:

tests/test_relational_operand.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import datajoint as dj
1010
from .schema_simple import A, B, D, E, F, L, DataA, DataB, TTestUpdate, IJ, JI, ReservedWord
11-
from .schema import Experiment, TTest3, Trial, Ephys
11+
from .schema import Experiment, TTest3, Trial, Ephys, Child, Parent
1212

1313

1414
def setup():
@@ -449,3 +449,13 @@ def test_reserved_words2():
449449
rel = ReservedWord()
450450
rel.insert1({'key': 1, 'in': 'ouch', 'from': 'bummer', 'int': 3, 'select': 'major pain'})
451451
(rel & 'key=1').fetch('in') # error because reserved word `key` is not in backquotes. See issue #249
452+
453+
@staticmethod
454+
def test_permissive_join_basic():
455+
"""Verify join compatibility check is skipped for join"""
456+
Child @ Parent
457+
458+
@staticmethod
459+
def test_permissive_restriction_basic():
460+
"""Verify join compatibility check is skipped for restriction"""
461+
Child ^ Parent

0 commit comments

Comments
 (0)