dmart 1.4.40.post12__py3-none-any.whl → 1.4.40.post14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dmart/dmart.py CHANGED
@@ -39,7 +39,7 @@ commands = """
39
39
  info
40
40
  init
41
41
  migrate
42
- tes
42
+ test
43
43
  """
44
44
 
45
45
  sentinel = object()
@@ -788,13 +788,18 @@ def main():
788
788
  finally:
789
789
  if temp_config_path and os.path.exists(temp_config_path):
790
790
  os.remove(temp_config_path)
791
- case "tes":
792
- script_path = Path(__file__).resolve().parent / "curl.sh"
791
+ case "test":
792
+ script_dir = Path(__file__).resolve().parent
793
+ script_path = script_dir / "curl.sh"
793
794
  if not script_path.exists():
794
795
  print("Error: curl.sh not found.")
795
796
  sys.exit(1)
796
797
 
797
- subprocess.run(["bash", str(script_path)], check=True)
798
+ try:
799
+ subprocess.run(["bash", str(script_path)], check=True, cwd=script_dir)
800
+ except subprocess.CalledProcessError as e:
801
+ print(f"Error: The test script failed with exit code {e.returncode}.")
802
+ sys.exit(e.returncode)
798
803
 
799
804
  if __name__ == "__main__":
800
805
  main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dmart
3
- Version: 1.4.40.post12
3
+ Version: 1.4.40.post14
4
4
  Requires-Python: >=3.11
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -7,7 +7,7 @@ dmart/config.ini.sample,sha256=AADMdwG07zRV_cAGMoOorHQaqzTTL2WEIC_mPWjIslE,159
7
7
  dmart/conftest.py,sha256=0ry_zeCmdBNLbm5q115b-pkOrUFYxdsOUXbIMkr7E5Y,362
8
8
  dmart/curl.sh,sha256=lmHSFVr5ft-lc5Aq9LfvKyWfntrfYbnirhzx1EGjp_A,15743
9
9
  dmart/data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
10
- dmart/dmart.py,sha256=yH4sTKMgE_bfDibfu7nM7ErOhkAhlCqIItDP4zZeM3M,31146
10
+ dmart/dmart.py,sha256=av0TYYKz5_MJWWEKe13DOKTnBIV5lkXvn-rSiAL06kY,31402
11
11
  dmart/get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
12
12
  dmart/hypercorn_config.toml,sha256=-eryppEG8HBOM_KbFc4dTQePnpyfoW9ZG5aUATU_6yM,50
13
13
  dmart/info.json,sha256=req6dipAaYTBTsFA1tGt-lQDOzrhW1HAGsn6KQimtCI,123
@@ -482,8 +482,8 @@ dmart/utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGV
482
482
  dmart/utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
483
483
  dmart/utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
484
484
  dmart/utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
485
- dmart-1.4.40.post12.dist-info/METADATA,sha256=bOGxhDHzwQIFZ6ZN1SWgbn0_B9lTnWhJXi8DF6WcE4w,2555
486
- dmart-1.4.40.post12.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
487
- dmart-1.4.40.post12.dist-info/entry_points.txt,sha256=N832M4wG8d2GDw1xztKRVM3TnxpY2QDzvdFE8XaWaG8,43
488
- dmart-1.4.40.post12.dist-info/top_level.txt,sha256=zJo4qk9fUW0BGIR9f4DCfpxaXbvQXH9izIOom6JsyAo,6
489
- dmart-1.4.40.post12.dist-info/RECORD,,
485
+ dmart-1.4.40.post14.dist-info/METADATA,sha256=ohEwo0C0DujCgYHB7LzBiUbOS-ANEwwGhCPDV56YXVI,2555
486
+ dmart-1.4.40.post14.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
487
+ dmart-1.4.40.post14.dist-info/entry_points.txt,sha256=N832M4wG8d2GDw1xztKRVM3TnxpY2QDzvdFE8XaWaG8,43
488
+ dmart-1.4.40.post14.dist-info/top_level.txt,sha256=zJo4qk9fUW0BGIR9f4DCfpxaXbvQXH9izIOom6JsyAo,6
489
+ dmart-1.4.40.post14.dist-info/RECORD,,