Skip to content

Update and add tests for open_file #1952

Closed
@RyanJWard

Description

@RyanJWard
Contributor

🔍 Before submitting the issue

  • I have searched among the existing issues
    I am using a Python virtual environment

🐞 Description of the bug

Update and add tests for https://geometry.docs.pyansys.com/version/stable/api/ansys/geometry/core/modeler/Modeler.html#Modeler.open_file

📝 Steps to reproduce

We should list all supported formats for Windows\Linux and include a test for each format

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.12

📦 Installed packages

import os
import sys
import math
from pathlib import Path
from pyvista.plotting import system_supports_plotting
from ansys.geometry.core import *
from ansys.geometry.core.connection import *
from ansys.geometry.core.designer import *
from ansys.geometry.core.materials import *
from ansys.geometry.core.math import *
from ansys.geometry.core.misc import *
from ansys.geometry.core.misc.units import *
from ansys.geometry.core.plotting import *
from ansys.geometry.core.sketch import *
from ansys.geometry.core.designer import body
from ansys.geometry.core.misc import UNITS, Distance
from ansys.geometry.core.shapes.curves.line import Line
import numpy as np
import random

Activity

self-assigned this
on May 1, 2025
RobPasMue

RobPasMue commented on May 1, 2025

@RobPasMue
Member

Somewhat related to #1146 - we have some tests commented out for this @RyanJWard. Please search for the corresponding TODOs in the test suite to reactivate their testing if possible. The TODOs should have a link to #1146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @RobPasMue@RyanJWard

    Issue actions

      Update and add tests for open_file · Issue #1952 · ansys/pyansys-geometry