mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-07 03:26:39 +01:00
add calc.go Growths in time, Mines costs. Applied to game
This commit is contained in:
14
test/test.py
14
test/test.py
@@ -56,7 +56,7 @@ jsonR = r.json()
|
||||
print(jsonR)
|
||||
|
||||
r = requests.get(URL + "/planets", headers=headers)
|
||||
t.rStatus("post /planets/:userid", r)
|
||||
t.rStatus("post /planets", r)
|
||||
jsonR = r.json()
|
||||
print(jsonR)
|
||||
print(jsonR["planets"][0])
|
||||
@@ -64,10 +64,10 @@ planetid = jsonR["planets"][0]["id"]
|
||||
|
||||
d = {
|
||||
"planetid": planetid,
|
||||
"building": "metalplant",
|
||||
"building": "metalmine",
|
||||
}
|
||||
r = requests.post(URL + "/buildings", json=d, headers=headers)
|
||||
t.rStatus("post /building/:userid", r)
|
||||
t.rStatus("post /building", r)
|
||||
jsonR = r.json()
|
||||
print(jsonR)
|
||||
|
||||
@@ -76,7 +76,13 @@ d = {
|
||||
"building": "ressearchlab",
|
||||
}
|
||||
r = requests.post(URL + "/buildings", json=d, headers=headers)
|
||||
t.rStatus("post /building/:userid", r)
|
||||
t.rStatus("post /building", r)
|
||||
jsonR = r.json()
|
||||
print(jsonR)
|
||||
|
||||
time.sleep(1)
|
||||
r = requests.get(URL + "/resources", headers=headers)
|
||||
t.rStatus("get /resources", r)
|
||||
jsonR = r.json()
|
||||
print(jsonR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user