BmnRoot
Loading...
Searching...
No Matches
publish_test_results.py
Go to the documentation of this file.
1
import
requests
2
import
json
3
import
base64
4
import
os
5
6
url =
'https://bmn.jinr.int/wp-json/wp/v2'
7
header = {
'Authorization'
:
'Basic '
+ os.environ.get(
'DOCS_CREDENTIALS'
)}
8
postID = os.environ.get(
'DOCS_ALL_MACROS_POST_ID'
)
9
10
json_data =
None
11
with
open(
'result.json'
)
as
json_file:
12
json_data = json.load(json_file)
13
14
result = requests.post(url +
"/pages/"
+ postID , headers=header, json=json_data)
install
services
tests
publish_test_results.py
Generated on Fri May 15 2026 10:41:00 for BmnRoot by
1.9.8