Skip to content

Commit

Permalink
Update Pystachio to 0.8.4 (apache#46)
Browse files Browse the repository at this point in the history
This fixes a few inconsistencies with hashing and equality
wickman/pystachio#30. This is not directly
applicable for Aurora but will be for downstream packages that try
to consume schema definitions in Python 3.
  • Loading branch information
StephanErb authored and rdelval committed Oct 16, 2018
1 parent 2be9315 commit b6a5a7a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mox==0.5.3
pex==1.2.15
protobuf==3.5.1
psutil==5.4.3
pystachio==0.8.3
pystachio==0.8.4
requests==2.18.4
requests-kerberos==0.11.0
requests-mock==1.3.0
Expand Down
14 changes: 14 additions & 0 deletions src/test/python/apache/aurora/config/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,20 @@ def test_simple_config():
assert proxy_config1.ports() == set()


def test_schema_equality():
one = REIFIED_CONFIG
two = REIFIED_CONFIG
other = REIFIED_LIMITED_CONFIG

assert one() == two()
assert not one() == other()
assert one() != other()
assert not one() != two()

assert one() in {two(): 'foo'}
assert one() not in {other(): 'bar'}


def make_config(announce, *ports):
process = Process(
name='hello',
Expand Down

0 comments on commit b6a5a7a

Please sign in to comment.