From 68aba949d0ac75742ba8daa2736cae344ee50da5 Mon Sep 17 00:00:00 2001 From: ethan92429 Date: Thu, 2 Aug 2018 16:49:22 -0400 Subject: [PATCH] fixed typo with test_client --- tests/{test_client => test_client.py} | 0 tests/test_exportstl.py | 27 --------------------------- tests/test_part.py | 6 +++--- 3 files changed, 3 insertions(+), 30 deletions(-) rename tests/{test_client => test_client.py} (100%) delete mode 100644 tests/test_exportstl.py diff --git a/tests/test_client b/tests/test_client.py similarity index 100% rename from tests/test_client rename to tests/test_client.py diff --git a/tests/test_exportstl.py b/tests/test_exportstl.py deleted file mode 100644 index df092cd..0000000 --- a/tests/test_exportstl.py +++ /dev/null @@ -1,27 +0,0 @@ -''' -exportstl -=== - -Demos 307 redirects with the Onshape API -''' - -from onshapepy.client import Client - -# stacks to choose from -stacks = { - 'cad': 'https://cad.onshape.com' -} - -# create instance of the onshapepy client; change key to test on another stack -c = Client(stack=stacks['cad'], logging=True) - -# get features for doc -did = "8ec353ba00f37f447b5a61f5" -wid = "04c36c786829759832bd3d1a" -eid = "2918f0f5adfa39d3047f19d0" - -# get the STL export -stl = c.part_studio_stl(did, wid, eid) - -# print to the console -print(stl.text) diff --git a/tests/test_part.py b/tests/test_part.py index fdf1e2a..91429e1 100644 --- a/tests/test_part.py +++ b/tests/test_part.py @@ -1,7 +1,7 @@ -from tests.test_basic import setup_client +from tests.test_client import setup_client from onshapepy.part import Part -from tests.test_basic import assembly -from tests.test_basic import part +from tests.test_client import assembly +from tests.test_client import part my_cube = Part("2d47b6abec9d1de1d2538372", "f2d396ba0762dc1f1dab3de1", "0639ea3c439aa0947744d29a")