File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -47,28 +47,30 @@ def test_entities_file(cloud_config, capsys):
47
47
def test_syntax_text (cloud_config , capsys ):
48
48
snippets .syntax_text ('President Obama is speaking at the White House.' )
49
49
out , _ = capsys .readouterr ()
50
- assert 'NOUN : President
51
- 'NOUN: Obama'
52
- 'VERB: is'
53
- 'VERB: speaking'
54
- 'ADP: at'
55
- 'DET: the'
56
- 'NOUN: White'
57
- 'NOUN: House'
58
- 'PUNCT: .' in out
50
+ assert (
51
+ 'NOUN: President'
52
+ 'NOUN: Obama'
53
+ 'VERB: is'
54
+ 'VERB: speaking'
55
+ 'ADP: at'
56
+ 'DET: the'
57
+ 'NOUN: White'
58
+ 'NOUN: House'
59
+ 'PUNCT: .' ) in out
59
60
60
61
61
62
def test_syntax_file (cloud_config , capsys ):
62
63
cloud_storage_input_uri = 'gs://{}/text.txt' .format (
63
64
cloud_config .storage_bucket )
64
65
snippets .syntax_file (cloud_storage_input_uri )
65
66
out , _ = capsys .readouterr ()
66
- assert 'NOUN : President
67
- 'NOUN: Obama'
68
- 'VERB: is'
69
- 'VERB: speaking'
70
- 'ADP: at'
71
- 'DET: the'
72
- 'NOUN: White'
73
- 'NOUN: House'
74
- 'PUNCT: .' in out
67
+ assert (
68
+ 'NOUN: President'
69
+ 'NOUN: Obama'
70
+ 'VERB: is'
71
+ 'VERB: speaking'
72
+ 'ADP: at'
73
+ 'DET: the'
74
+ 'NOUN: White'
75
+ 'NOUN: House'
76
+ 'PUNCT: .' ) in out
You can’t perform that action at this time.
0 commit comments