Skip to content

Commit 9aa09da

Browse files
committed
fix some warnings
1 parent f1b73f5 commit 9aa09da

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/publisher_tests.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,30 +157,29 @@ def test_integration_tc_string(self):
157157

158158

159159
def test_integration_tc_string_with_insufficient_consent(self):
160-
EUID_BASE_URL = os.getenv("EUID_BASE_URL", "http://localhost:8080");
161-
EUID_API_KEY = os.getenv("EUID_API_KEY", "trusted-partner-key");
162-
EUID_SECRET_KEY = os.getenv("EUID_SECRET_KEY", "wJ0hP19QU4hmpB64Y3fV2dAed8t/mupw3sjN5jNRFzg=");
160+
EUID_BASE_URL = os.getenv("EUID_BASE_URL", "http://localhost:8080")
161+
EUID_API_KEY = os.getenv("EUID_API_KEY", "trusted-partner-key")
162+
EUID_SECRET_KEY = os.getenv("EUID_SECRET_KEY", "wJ0hP19QU4hmpB64Y3fV2dAed8t/mupw3sjN5jNRFzg=")
163163

164164
publisher_client = Uid2PublisherClient(EUID_BASE_URL, EUID_API_KEY, EUID_SECRET_KEY)
165165
tc_string = "CPehXK9PehXK9ABAMBFRACBoADAAAEJAAIYgAKwAQAKgArABAAqAAA"
166166
with self.assertRaises(ValueError):
167167
publisher_client.generate_token(TokenGenerateInput.from_email("[email protected]").with_transparency_and_consent_string(tc_string))
168168

169169
def test_integration_optout_generate_token(self):
170-
EUID_BASE_URL = os.getenv("EUID_BASE_URL", "http://localhost:8080");
171-
EUID_API_KEY = os.getenv("EUID_API_KEY", "trusted-partner-key");
172-
EUID_SECRET_KEY = os.getenv("EUID_SECRET_KEY", "wJ0hP19QU4hmpB64Y3fV2dAed8t/mupw3sjN5jNRFzg=");
170+
EUID_BASE_URL = os.getenv("EUID_BASE_URL", "http://localhost:8080")
171+
EUID_API_KEY = os.getenv("EUID_API_KEY", "trusted-partner-key")
172+
EUID_SECRET_KEY = os.getenv("EUID_SECRET_KEY", "wJ0hP19QU4hmpB64Y3fV2dAed8t/mupw3sjN5jNRFzg=")
173173

174174
publisher_client = Uid2PublisherClient(EUID_BASE_URL, EUID_API_KEY, EUID_SECRET_KEY)
175175
tc_string = "CPhJRpMPhJRpMABAMBFRACBoALAAAEJAAIYgAKwAQAKgArABAAqAAA"
176176
input = TokenGenerateInput.from_email("[email protected]").do_not_generate_tokens_for_opted_out().with_transparency_and_consent_string(tc_string)
177+
print(input.get_as_json_string())
177178
token_generate_response = publisher_client.generate_token(input)
178179
self.assertTrue(token_generate_response.is_optout())
179180
self.assertFalse(token_generate_response.is_success())
180181
self.assertIsNone(token_generate_response.get_identity())
181182

182183

183-
184-
185184
if __name__ == '__main__':
186185
unittest.main()

0 commit comments

Comments
 (0)