File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,22 +37,3 @@ def get_timestamp():
3737 """
3838 timestamp = time .strftime ("%Y%m%d%H%M%S" )
3939 return timestamp
40-
41- def print_directory_levels ():
42- """Prints out file directory levels.
43-
44- """
45-
46- printed_path = os .path .realpath (__file__ )
47-
48- for level in range (5 ):
49- print (f"{ level } level(s) up: { printed_path } " )
50- printed_path = os .path .dirname (printed_path )
51-
52- def print_cwd ():
53- """Prints out file directory levels.
54-
55- """
56-
57- print ("cwd:" ,os .getcwd ())
58- print ("dir above cwd:" ,os .path .dirname (os .getcwd ()))
Original file line number Diff line number Diff line change @@ -20,10 +20,3 @@ def test_get_timestamp():
2020
2121 # timestamp should all be numeric characters
2222 assert timestamp .isnumeric ()
23-
24- def test_directory_printing ():
25- """Test directory printing functions.
26-
27- """
28- fo .print_directory_levels ()
29- fo .print_cwd ()
You can’t perform that action at this time.
0 commit comments