Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
cicTeam
/
Clarity_Tools_Selah
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73c201b8
authored
Sep 10, 2021
by
Selah Clarity
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
printout date of sql run for record keeping
1 parent
188330a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
clarity_to_csv.py
clarity_to_csv_test.py
clarity_to_csv.py
View file @
73c201b
...
@@ -49,7 +49,8 @@ def clarity_to_csv(sqlfilename, csvfilenames, dbconn=None):
...
@@ -49,7 +49,8 @@ def clarity_to_csv(sqlfilename, csvfilenames, dbconn=None):
clarity_to_csv_inner
(
sqltext
,
csvfilenames
,
sqalconn
)
clarity_to_csv_inner
(
sqltext
,
csvfilenames
,
sqalconn
)
end
=
time
.
time
()
end
=
time
.
time
()
duration
=
end
-
start
duration
=
end
-
start
print
(
"Query ran and exported in {:.1f} s"
.
format
(
duration
))
dtstr
=
time
.
strftime
(
'
%
a
%
I:
%
M
%
p
%
Y-
%
m-
%
d'
)
print
(
"Query ran and exported {} in {:.1f} s"
.
format
(
dtstr
,
duration
))
...
...
clarity_to_csv_test.py
View file @
73c201b
...
@@ -146,9 +146,9 @@ class TestStuff(unittest.TestCase):
...
@@ -146,9 +146,9 @@ class TestStuff(unittest.TestCase):
#%%
#%%
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
#
t = TestStuff()
t
=
TestStuff
()
# t.test_remove_file_not_there()
# t.test_remove_file_not_there()
#
t.test_integration_test()
t
.
test_integration_test
()
# t.test_comment_with_semicolon()
# t.test_comment_with_semicolon()
# t.test_none_csv()
# t.test_none_csv()
# t.test_unicode_error()
# t.test_unicode_error()
...
@@ -158,7 +158,7 @@ if __name__ == '__main__':
...
@@ -158,7 +158,7 @@ if __name__ == '__main__':
# t.test_cohort()
# t.test_cohort()
unittest
.
main
()
#
unittest.main()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment