NTHU-SA / NTHU-Data-API

This is a project for NTHU students to get data from NTHU website.
https://api.nthusa.tw/docs
MIT License
11 stars 4 forks source link

test: unexpected warning showed during test #46

Open l7wei opened 6 months ago

l7wei commented 6 months ago

Some unexpected warning showed during test.

/home/runner/work/NTHU-Data-API/NTHU-Data-API/src/api/models/buses.py:162: SyntaxWarning: invalid escape sequence '\{'
  regex_pattern = r"const " + variable_string + " = (\{.*?\})"
/home/runner/work/NTHU-Data-API/NTHU-Data-API/src/api/models/buses.py:180: SyntaxWarning: invalid escape sequence '\['
  regex_pattern = r"const " + variable_string + " = (\[.*?\])"
<unknown>:162: SyntaxWarning: invalid escape sequence '\{'
<unknown>:180: SyntaxWarning: invalid escape sequence '\['
/home/runner/work/NTHU-Data-API/NTHU-Data-API/src/api/models/buses.py:162: SyntaxWarning: invalid escape sequence '\{'
  regex_pattern = r"const " + variable_string + " = (\{.*?\})"
/home/runner/work/NTHU-Data-API/NTHU-Data-API/src/api/models/buses.py:180: SyntaxWarning: invalid escape sequence '\['
  regex_pattern = r"const " + variable_string + " = (\[.*?\])"
DeprecationWarning: `example` has been deprecated, please use `examples` instead
iwtba4188 commented 6 months ago
DeprecationWarning: `example` has been deprecated, please use `examples` instead
iwtba4188 commented 6 months ago

btw, 如果想要眼不見為淨的話可以加上 -W ignore::DeprecationWarning 世界就安靜ㄌ ref