Adding upstream version 7.5.1+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
caee58990d
commit
916e3d5336
89 changed files with 16891 additions and 0 deletions
15
__tests__/load/generate-json-10000-patterns.py
Normal file
15
__tests__/load/generate-json-10000-patterns.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Use foxyproxy-template.json to ouptut foxyproxy-5000-proxies-test-settings.json
|
||||
# which has 5000 proxies defined. foxyproxy-template.json should have a least 1
|
||||
# non-default proxy defined. All data in new file is same as the 1 non-default
|
||||
# proxy except for the proxy id, which must be unqiue
|
||||
|
||||
import json, copy
|
||||
|
||||
with open('foxyproxy-template.json') as json_file:
|
||||
data = json.load(json_file)
|
||||
template = data['proxySettings'][0]['whitePatterns'][0]
|
||||
for x in range(10000):
|
||||
new_pattern = copy.deepcopy(template)
|
||||
data['proxySettings'][0]['whitePatterns'].append(new_pattern)
|
||||
with open("foxyproxy-10000-patterns-test-settings.json", "w") as write_file:
|
||||
json.dump(data, write_file)
|
Loading…
Add table
Add a link
Reference in a new issue