Skip to content

Commit

Permalink
Create prod_final_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
srijan-deepsource committed Jul 13, 2020
1 parent 6e70f9e commit 402e5e2
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions prod_final_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import os
from sys import (
path as p,
argv
)
import math
# This should be at the top.
from __future__ import print_function
import random as ran

def foo(this_is_unused, x=[1, 2]):
x.append(ran.randint(1, 100))
return x


def bar():
print("Hey there, Reviewer!")


def spam():
print("Hope you're paying attention to the tests too!")


def give_me_an_issue():
print(f"okay. Let's fix this unnecessary fstring.")


def get_hypotenuse(a, b):
"""Fine. Fix this pythagorean issue as well."""
return math.sqrt(a**2 + b**2)


__all__ = [
"got_hypotenuse", # Shall be deleted

# Yup. Delete this

"this_too_would_be_deleted", give_me_an_issue, spam,
foo, "future", bar,
get_hypotenuse, "ughhh", # With a comment,
"budd",
"thudd",


]

0 comments on commit 402e5e2

Please sign in to comment.