Tarek Ziadé avatar Tarek Ziadé committed 0b23d2f

forgot to add a file

Comments (0)

Files changed (1)

+import unittest
+from proxy import start, stop
+import code
+from code import sync_session
+proxy_config = {'scheme': 'https',
+                'proxy': False,
+                'netloc': 'stage-auth.services.mozilla.com',
+                'data': 'record'}
+def test_sync_session_record():
+    # starting the proxy
+    port = start(proxy_config)
+    # changing the config of the app so it uses the proxy
+    code.server = 'http://localhost:%d' % port
+    # now run the code that calls a third-party server
+    try:
+        res = sync_session()
+    finally:
+        # stopping the proxy
+        stop()
+    assert res
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.