Skip to content

Commit

Permalink
check inst_instr in a1_3
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaMart committed Oct 31, 2024
1 parent 9573781 commit 13ad9d6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions app/services/a_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,20 @@ def compA1_3(instance) -> Tuple[bool, str]:
logs.append('This is a web-based software. This indicator is not applicable.')
return False, logs

# 1. Check if there is a valid document similar to installation instructions

# 1. Check if @inst_instr is True
logs.append("⚙️ Checking if installation instructions are provided")
inst_instr = instance.inst_instr
logs.append(f"🔍 Received inst_instr: {inst_instr}")
if inst_instr is True:
logs.append("✅ Installation instructions are provided.")
logs.append("Result: PASSED")
return True, logs
else:
logs.append("❌ Installation instructions are not provided. Checking documentation ...")


# 2. Check if there is a valid document similar to installation instructions
# Check if the url is operational
logs.append("⚙️ Checking if there are installation instructions and whether they are operational")
documentation = instance.documentation
Expand All @@ -119,7 +132,7 @@ def compA1_3(instance) -> Tuple[bool, str]:
else:
logs.append("❌ No installation instructions found in documentation. Checking sources ...")

#2. Check if any of the sources provide installation instructions
# 3. Check if any of the sources provide installation instructions
logs.append("⚙️ Checking if any of the sources provide installation instructions")
source = instance.source
logs = log_sources(instance, logs)
Expand Down

0 comments on commit 13ad9d6

Please sign in to comment.