Skip to content

Commit

Permalink
upgrade DLP version and fix tests [(#1784)](GoogleCloudPlatform/pytho…
Browse files Browse the repository at this point in the history
…n-docs-samples#1784)

* upgrade DLP version and fix tests

* bump dlp version again
  • Loading branch information
andrewsg authored and chenyumic committed Nov 8, 2018
1 parent 68b5872 commit 0d2381f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion samples/snippets/deid_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def test_deidentify_with_mask(capsys):


def test_deidentify_with_mask_ignore_insensitive_data(capsys):
deid.deidentify_with_mask(GCLOUD_PROJECT, HARMLESS_STRING)
deid.deidentify_with_mask(GCLOUD_PROJECT, HARMLESS_STRING,
['US_SOCIAL_SECURITY_NUMBER'])

out, _ = capsys.readouterr()
assert HARMLESS_STRING in out
Expand Down Expand Up @@ -110,6 +111,7 @@ def test_deidentify_with_fpe_ignores_insensitive_data(capsys):
deid.deidentify_with_fpe(
GCLOUD_PROJECT,
HARMLESS_STRING,
['US_SOCIAL_SECURITY_NUMBER'],
alphabet='NUMERIC',
wrapped_key=WRAPPED_KEY,
key_name=KEY_NAME)
Expand Down
10 changes: 5 additions & 5 deletions samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
google-cloud-dlp==0.3.0
google-cloud-storage==1.8.0
google-cloud-pubsub==0.33.0
google-cloud-datastore==1.6.0
google-cloud-bigquery==0.31.0
google-cloud-dlp==0.9.0
google-cloud-storage==1.10.0
google-cloud-pubsub==0.37.2
google-cloud-datastore==1.7.0
google-cloud-bigquery==1.5.0

0 comments on commit 0d2381f

Please sign in to comment.