Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
project04
Commits
15118a00
Commit
15118a00
authored
8 months ago
by
Antonio Caceres
Browse files
Options
Download
Email Patches
Plain Diff
Remove unnecessary os and sys imports.
parent
c0b92ca9
master
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
tests/1.C/test_task2.py
+1
-1
tests/1.C/test_task2.py
tests/1.C/test_task3.py
+1
-1
tests/1.C/test_task3.py
tests/2.B/test_task4.py
+1
-1
tests/2.B/test_task4.py
tests/2.B/test_task5.py
+1
-1
tests/2.B/test_task5.py
tests/3.A/test_task6.py
+2
-2
tests/3.A/test_task6.py
tests/helpers/constants_for_testing.py
+0
-1
tests/helpers/constants_for_testing.py
with
6 additions
and
7 deletions
+6
-7
tests/1.C/test_task2.py
View file @
15118a00
import
pytest
,
os
,
sys
# type: ignore
import
pytest
import
src.swinging
as
main
...
...
This diff is collapsed.
Click to expand it.
tests/1.C/test_task3.py
View file @
15118a00
from
vpython
import
vector
,
color
,
textures
import
pytest
,
os
,
sys
# type: ignore
import
pytest
from
tests.helpers.fake_objects
import
FakePend
import
src.swinging
as
main
...
...
This diff is collapsed.
Click to expand it.
tests/2.B/test_task4.py
View file @
15118a00
import
pytest
,
os
,
sys
# type: ignore
import
pytest
import
visualize_cradle_run
as
main
@
pytest
.
mark
.
parametrize
(
"e, omega, omega2, m1, m2, r_param, expected_omega, expected_omega2"
,
[
...
...
This diff is collapsed.
Click to expand it.
tests/2.B/test_task5.py
View file @
15118a00
import
pytest
,
os
,
sys
# type: ignore
import
pytest
from
vpython
import
vector
,
color
,
textures
import
visualize_cradle_run
as
main
...
...
This diff is collapsed.
Click to expand it.
tests/3.A/test_task6.py
View file @
15118a00
import
pytest
,
os
,
sys
# type: ignore
import
pytest
from
vpython
import
vector
,
color
,
textures
import
visualize_cradle_run
as
main
...
...
@@ -10,7 +10,7 @@ from tests.helpers.fake_objects import FakePend
r_param, dt, g,
\
exp_omega1, exp_theta1,
\
exp_omega2, exp_theta2,
\
exp_omega3, exp_theta3"
,[
exp_omega3, exp_theta3"
,
[
((
vector
(
1
,
0
,
0
),
1
,
0.5
,
2
,
1
,
vector
(
0
,
0
,
0
),
2
,
0.5
,
3
,
0
,
vector
(
1.05
,
0
,
0
),
1
,
0.5
,
2.5
,
1
,
...
...
This diff is collapsed.
Click to expand it.
tests/helpers/constants_for_testing.py
View file @
15118a00
from
vpython
import
vector
import
pytest
,
os
,
sys
# type: ignore
VPYTHON_COLOR_MAP
=
{
'white'
:
vector
(
1
,
1
,
1
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help