qase-python-commons 3.1.2__py3-none-any.whl → 3.1.3__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.

Potentially problematic release.


This version of qase-python-commons might be problematic. Click here for more details.

qase/commons/logger.py CHANGED
@@ -11,7 +11,7 @@ class Logger:
11
11
  if not os.path.exists(dir):
12
12
  os.makedirs(dir)
13
13
  self.log_file = os.path.join(dir, f'{filename}')
14
- with open(self.log_file, 'w'):
14
+ with open(self.log_file, 'w', encoding='utf-8'):
15
15
  pass
16
16
 
17
17
  def log(self, message: str, level: str = 'info'):
@@ -19,7 +19,7 @@ class Logger:
19
19
  log = f"[Qase][{time_str}][{level}] {message}\n"
20
20
  print(log)
21
21
  if self.debug:
22
- with open(self.log_file, 'a') as f:
22
+ with open(self.log_file, 'a', encoding='utf-8') as f:
23
23
  f.write(log)
24
24
 
25
25
  def log_debug(self, message: str):
@@ -27,6 +27,6 @@ class Logger:
27
27
  self.log(message, 'debug')
28
28
 
29
29
  @staticmethod
30
- def _get_timestamp(format: str = "%Y%m%d_%H_%M_%S"):
30
+ def _get_timestamp(fmt: str = "%Y%m%d_%H_%M_%S"):
31
31
  now = datetime.datetime.now()
32
- return now.strftime(format)
32
+ return now.strftime(fmt)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.1.2
3
+ Version: 3.1.3
4
4
  Summary: A library for Qase TestOps and Qase Report
5
5
  Author-email: Qase Team <support@qase.io>
6
6
  Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
@@ -1,7 +1,7 @@
1
1
  qase/commons/__init__.py,sha256=3HI65PJES4Q6YvtkSuRPh6tZboTETJo8wbdHlNYaePU,323
2
2
  qase/commons/config.py,sha256=meRRgDrsA9qQ9fZR4fnP0VdngrKiGcHF9nnJkf3eJpg,8320
3
3
  qase/commons/loader.py,sha256=-MMY4HgSI6q1xq3NaJoq_w4liM73qdFKjYLVCT1E7Pc,1064
4
- qase/commons/logger.py,sha256=Tg1sBWcn-3Tw1YLNj1kTWjGuLFMTNnwTMQmi6dvAbz8,997
4
+ qase/commons/logger.py,sha256=ka5chQYBXLUB5pM4YHDBo3QCZfBTGMtC3H33tI4NbPQ,1027
5
5
  qase/commons/utils.py,sha256=OOr6kQ5hPZEyHXwbwiTOTkonRxmmtkyZPPGqXQKp5vY,2799
6
6
  qase/commons/client/api_v1_client.py,sha256=NVluiG_pBZL4u2D34WtgXaPkA4TdJhmHUNd6rnfcDeg,11178
7
7
  qase/commons/client/api_v2_client.py,sha256=F3wU_2EKe6eUjNRahvnDmpbx99PwZB6Lxc4VPRj7w58,7247
@@ -34,7 +34,7 @@ qase/commons/reporters/core.py,sha256=0x5G-KVfEOWyXiXaX5__7JBIr3Rxy8vhy0cByUSZUc
34
34
  qase/commons/reporters/report.py,sha256=MPsFv3k2l4652NyXEGFiSmwsSpwZT3Is-lLRXvsniz4,4606
35
35
  qase/commons/reporters/testops.py,sha256=f5BcorFwIK5BSeA4Rv4IKDddkWrAXL_w-Y5Xn--NdYs,6264
36
36
  qase/commons/validators/base.py,sha256=wwSn-4YiuXtfGMGnSKgo9Vm5hAKevVmmfd2Ro6Q7MYQ,173
37
- qase_python_commons-3.1.2.dist-info/METADATA,sha256=9GyQJoBrelspuLI6sceKAYatu5H9h7krHKWKF-tMU2s,1859
38
- qase_python_commons-3.1.2.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
39
- qase_python_commons-3.1.2.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
40
- qase_python_commons-3.1.2.dist-info/RECORD,,
37
+ qase_python_commons-3.1.3.dist-info/METADATA,sha256=gPr1b6ZR6Qn1Ma4VCR_wBb5htebpF_0k6DJupUOqSCc,1859
38
+ qase_python_commons-3.1.3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
39
+ qase_python_commons-3.1.3.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
40
+ qase_python_commons-3.1.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.1)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5