From d4cfbf1a2a77543889f6cb3d9652324cce2f3f47 Mon Sep 17 00:00:00 2001 From: brodriguez8774 <brodriguez8774@gmail.com> Date: Mon, 16 Sep 2019 22:06:31 -0400 Subject: [PATCH] Create initial Queue class and update file headers accordingly --- main.py | 2 +- pytests/resources/test_queue.py | 22 ++++++++++++++++++++++ pytests/resources/test_stack.py | 2 +- readme.md | 5 +++-- resources/logging.py | 2 +- resources/queue.py | 13 +++++++++++++ resources/stack.py | 2 +- unittests/resources/queue.py | 24 ++++++++++++++++++++++++ unittests/resources/stack.py | 2 +- 9 files changed, 67 insertions(+), 7 deletions(-) create mode 100644 pytests/resources/test_queue.py create mode 100644 resources/queue.py create mode 100644 unittests/resources/queue.py diff --git a/main.py b/main.py index 58dcf72..e5e2b3a 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: InClass03 - Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/pytests/resources/test_queue.py b/pytests/resources/test_queue.py new file mode 100644 index 0000000..a31d769 --- /dev/null +++ b/pytests/resources/test_queue.py @@ -0,0 +1,22 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: Custom Stack and Queue Implementation. +Author: Brandon Rodriguez + + +PyTests for custom Queue implementation. +""" + +# System Imports. + +# User Class Imports. +from resources.stack import Stack + + + +class TestStack(): + test_stack = Stack() + + def test_(self): + pass diff --git a/pytests/resources/test_stack.py b/pytests/resources/test_stack.py index 2328e93..594543b 100644 --- a/pytests/resources/test_stack.py +++ b/pytests/resources/test_stack.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/readme.md b/readme.md index efcee62..5407c1a 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,9 @@ -# Custom Stack Implementation +# Python - Custom Stack and Queue Implementation ## Description -In class example of a custom stack implementation. +Implementation of custom Stack and Queue data structures. +Includes both Unittesting and PyTest testing, to prove knowledge of both. ## Python Environment diff --git a/resources/logging.py b/resources/logging.py index 38627d8..47e39a0 100644 --- a/resources/logging.py +++ b/resources/logging.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/resources/queue.py b/resources/queue.py new file mode 100644 index 0000000..341de3e --- /dev/null +++ b/resources/queue.py @@ -0,0 +1,13 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: Custom Stack and Queue Implementation. +Author: Brandon Rodriguez + + +Custom Queue implementation. +""" + + +class Queue(): + pass diff --git a/resources/stack.py b/resources/stack.py index ee63fdd..2b90c66 100644 --- a/resources/stack.py +++ b/resources/stack.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/unittests/resources/queue.py b/unittests/resources/queue.py new file mode 100644 index 0000000..8cbd81f --- /dev/null +++ b/unittests/resources/queue.py @@ -0,0 +1,24 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: Custom Stack and Queue Implementation. +Author: Brandon Rodriguez + + +UnitTests for custom Stack implementation. +""" + + +# System Imports. +import unittest + +# User Class Imports. +from resources.queue import Queue + + +class TestStack(unittest.TestCase): + def setUp(self): + self.test_stack = Queue() + + def test_(self): + pass diff --git a/unittests/resources/stack.py b/unittests/resources/stack.py index 1c06a7d..2dfe927 100644 --- a/unittests/resources/stack.py +++ b/unittests/resources/stack.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez -- GitLab