diff --git a/dump2polarion/dumper_cli.py b/dump2polarion/dumper_cli.py
index <HASH>..<HASH> 100644
--- a/dump2polarion/dumper_cli.py
+++ b/dump2polarion/dumper_cli.py
@@ -129,7 +129,7 @@ def submit_if_ready(args, submit_args, config):
         return None
 
     # TODO: better detection of xunit file that is ready for import needed
-    if "<testsuites" in xml and "<properties>" not in xml:
+    if "<testsuites" in xml and 'name="pytest"' in xml:
         return None
 
     if args.no_submit:
Fix pytest junit file detection