Python Library Unittest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unittest_head.tex 4.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {%- import 'macros.tex' as macros %}
  2. \documentclass[a4paper]{article}
  3. %\documentclass[a4paper,landscape]{article}
  4. \renewcommand{\familydefault}{\sfdefault}
  5. \usepackage[table]{xcolor}
  6. \definecolor{orange}{rgb}{1, 0.7, 0}
  7. \definecolor{lightgrey}{rgb}{0.925, 0.925, 0.925}
  8. \setlength{\topmargin}{-3cm}
  9. \setlength{\oddsidemargin}{-0.5cm}
  10. \setlength{\evensidemargin}{0cm}
  11. \setlength{\textwidth}{17.5cm}
  12. \setlength{\textheight}{24.5cm}
  13. %\setlength{\textwidth}{25cm}
  14. %\setlength{\textheight}{15cm}
  15. \setlength{\headheight}{84pt}
  16. \usepackage{fancyvrb}
  17. \usepackage{fvextra}
  18. %\usepackage{framed,color}
  19. %\newenvironment{modulelog}{\snugshade\Verbatim}{\endVerbatim\endsnugshade}
  20. \usepackage{adjustbox}
  21. \newenvironment{modulelog}%
  22. {\par\noindent\adjustbox{margin=0ex,bgcolor=shadecolor,margin=0ex}\bgroup\varwidth\linewidth\Verbatim}%
  23. {\endVerbatim\endvarwidth\egroup}
  24. %\usepackage{xcolor}
  25. \renewcommand{\baselinestretch}{1,2}
  26. \setlength{\parindent}{0pt}
  27. \setlength{\parskip}{9pt plus3pt minus3pt}
  28. \usepackage{listings}
  29. \usepackage{color}
  30. \definecolor{bg-partially-covered}{rgb}{1,1,0.6} % light-yellow
  31. \definecolor{bg-uncovered}{rgb}{1,0.8,0.8} % light-red
  32. \definecolor{bg-covered}{rgb}{0.95,1,0.95} % very light-green
  33. \definecolor{bg-clean}{rgb}{1,1,1} % white
  34. \definecolor{mygreen}{rgb}{0,0.6,0}
  35. \definecolor{mygray}{rgb}{0.5,0.5,0.5}
  36. \definecolor{mymauve}{rgb}{0.58,0,0.82}
  37. \lstset{ %
  38. backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
  39. basicstyle=\footnotesize, % the size of the fonts that are used for the code
  40. breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
  41. breaklines=true, % sets automatic line breaking
  42. captionpos=b, % sets the caption-position to bottom
  43. commentstyle=\color{mygreen}, % comment style
  44. deletekeywords={...}, % if you want to delete keywords from the given language
  45. escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
  46. extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
  47. frame=none, % adds a frame around the code
  48. keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
  49. keywordstyle=\color{blue}, % keyword style
  50. language=Octave, % the language of the code
  51. morekeywords={*,...}, % if you want to add more keywords to the set
  52. numbers=left, % where to put the line-numbers; possible values are (none, left, right)
  53. numbersep=5pt, % how far the line-numbers are from the code
  54. numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
  55. rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
  56. showlines=true,
  57. showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
  58. showstringspaces=false, % underline spaces within strings only
  59. showtabs=false, % show tabs within strings adding particular underscores
  60. stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
  61. stringstyle=\color{mymauve}, % string literal style
  62. tabsize=2, % sets default tabsize to 2 spaces
  63. }
  64. \usepackage{hyperref}
  65. \usepackage{longtable}
  66. \usepackage{tabu}
  67. \usepackage{multicol}
  68. \usepackage{booktabs}
  69. \usepackage{graphicx}
  70. \usepackage{lastpage} % for the number of the last page in the document
  71. \usepackage{fancyhdr}
  72. \fancyhf{}
  73. \renewcommand{\headrulewidth}{0pt}
  74. \renewcommand{\footrulewidth}{0pt}
  75. \lhead{\textcolor{gray}{}}
  76. \chead{\textcolor{gray}{ Unittest for {\tt {{ macros.latex_filter(data.testobject_information.Name) }} }}}
  77. \rhead{\textcolor{gray}{}}
  78. \lfoot{\textcolor{gray}{}}
  79. \cfoot{\textcolor{gray}{}}
  80. \rfoot{\textcolor{gray}{\thepage\,/ \pageref{LastPage}}}
  81. \begin{document}