testhide-pytest-plugin 0.2.4__tar.gz → 0.2.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testhide-pytest-plugin
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: A pytest plugin for creating incremental XML test reports for Testhide system.
5
5
  Author-email: Mykola Kovhanko <thuesdays@gmail.com>
6
6
  License: MIT License
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "testhide-pytest-plugin"
9
- version = "0.2.4"
9
+ version = "0.2.6"
10
10
  authors = [
11
11
  { name="Mykola Kovhanko", email="thuesdays@gmail.com" },
12
12
  ]
@@ -194,7 +194,7 @@ class TesthidePlugin:
194
194
  return
195
195
 
196
196
  filepath, line, _ = report.location
197
- name = item.originalname if hasattr(item, 'originalname') else item.name
197
+ name = item.name
198
198
  classname_path = report.nodeid.split('::')
199
199
  if len(classname_path) > 2:
200
200
  classname = ".".join(classname_path[:-1]).replace('/', '.')
@@ -271,6 +271,9 @@ class TesthidePlugin:
271
271
  worker = getattr(self.config, 'workerinput', {}).get('workerid', 'master')
272
272
  fname = os.path.join(self.temp_dir, f"{safe_nodeid}_{worker}.xml")
273
273
 
274
+ if os.name == 'nt' and not fname.startswith('\\\\?\\'):
275
+ fname = f"\\\\?\\{os.path.abspath(fname)}"
276
+ os.makedirs(os.path.dirname(fname), exist_ok=True)
274
277
  ET.ElementTree(testcase).write(fname, encoding='utf-8', xml_declaration=True)
275
278
 
276
279
  def pytest_sessionstart(self, session):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testhide-pytest-plugin
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: A pytest plugin for creating incremental XML test reports for Testhide system.
5
5
  Author-email: Mykola Kovhanko <thuesdays@gmail.com>
6
6
  License: MIT License