Repository: AgnostiqHQ/covalent
Pull request #213 (2022-03-23 17:35:16)

OS Queuer import issue fix
- [x] I have added the tests to cover my changes.
- [x] I have updated the documentation, VERSION, and CHANGELOG accordingly.
- [x] I have read the CONTRIBUTING document.


codecov[bot]: # [Codecov](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ) Report
> Merging [#213](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ) (6d8dbb0) into [develop](https://codecov.io/gh/AgnostiqHQ/covalent/commit/0b21e563f56309350f00bdd79f19664a352b9178?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ) (0b21e56) will **increase** coverage by `0.35%`.
> The diff coverage is `n/a`.

```diff
@@             Coverage Diff             @@
##           develop     #213      +/-   ##
===========================================
+ Coverage    77.25%   77.60%   +0.35%     
===========================================
  Files           31       31              
  Lines         1710     1710              
===========================================
+ Hits          1321     1327       +6     
+ Misses         389      383       -6     
```


| [Impacted Files](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ) | Coverage Δ | |
|---|---|---|
| [covalent\_dispatcher/\_core/execution.py](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ#diff-Y292YWxlbnRfZGlzcGF0Y2hlci9fY29yZS9leGVjdXRpb24ucHk=) | `69.42% <0.00%> (+3.82%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ). Last update [0b21e56...6d8dbb0](https://codecov.io/gh/AgnostiqHQ/covalent/pull/213?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AgnostiqHQ).


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6775c343..a67d8cf8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [0.32.9] - 2022-03-23
+
+### Fixed
+
+- Updated OS Queuer imports to remove top level modules `refactor.queuer` 
+
 ## [0.32.8] - 2022-03-22
 
 ### Added
diff --git a/VERSION b/VERSION
index 4377f239..e7669812 100644
--- a/VERSION
+++ b/VERSION
@@ -1,1 +1,1 @@
-0.32.8
+0.32.9
diff --git a/refactor/queuer/app/api/api_v0/endpoints/submit.py b/refactor/queuer/app/api/api_v0/endpoints/submit.py
index 3ae8515f..8ed7abd1 100644
--- a/refactor/queuer/app/api/api_v0/endpoints/submit.py
+++ b/refactor/queuer/app/api/api_v0/endpoints/submit.py
@@ -22,8 +22,8 @@ import logging
 
 from app.schemas.submit import ResultPickle, SubmitResponse
 from fastapi import APIRouter, File, HTTPException
-from refactor.queuer.app.core.api import DataService
-from refactor.queuer.app.core.queuer import Queuer
+from app.core.api import DataService
+from app.core.queuer import Queuer
 
 router = APIRouter()
 
diff --git a/refactor/queuer/app/core/api.py b/refactor/queuer/app/core/api.py
index 3af6bcd7..6f800f1d 100644
--- a/refactor/queuer/app/core/api.py
+++ b/refactor/queuer/app/core/api.py
@@ -3,7 +3,7 @@ import requests
 
 from urllib.parse import urljoin
 
-from refactor.queuer.app.core.config import settings
+from app.core.config import settings
 
 class APIService():
 
diff --git a/refactor/queuer/app/core/queuer.py b/refactor/queuer/app/core/queuer.py
index cebb07a0..69bc555a 100644
--- a/refactor/queuer/app/core/queuer.py
+++ b/refactor/queuer/app/core/queuer.py
@@ -5,7 +5,7 @@ import logging
 import nats
 from typing import Any
 
-from refactor.queuer.app.core.config import settings
+from app.core.config import settings
 
 class QueueTopics(Enum):
     DIPATCH = settings.MQ_DISPATCH_TOPIC


Test patch:
diff --git a/refactor/queuer/tests/app/core/api_test.py b/refactor/queuer/tests/app/core/api_test.py
index 29989e60..8cb268be 100644
--- a/refactor/queuer/tests/app/core/api_test.py
+++ b/refactor/queuer/tests/app/core/api_test.py
@@ -1,7 +1,7 @@
 import os
 import mock
 import requests
-from refactor.queuer.app.core.api import DataService, APIService
+from app.core.api import DataService, APIService
 
 dirname = os.path.dirname(__file__)
 filename = os.path.join(dirname, './_test_assets/result.pkl')
diff --git a/refactor/queuer/tests/app/core/queuer_test.py b/refactor/queuer/tests/app/core/queuer_test.py
index 405dc222..925a9f62 100644
--- a/refactor/queuer/tests/app/core/queuer_test.py
+++ b/refactor/queuer/tests/app/core/queuer_test.py
@@ -1,7 +1,7 @@
 import os
 import mock
 import requests
-from refactor.queuer.app.core.queuer import Queuer
+from app.core.queuer import Queuer
 import nats
 
 class TestQueuer:
diff --git a/refactor/queuer/tests/main_test.py b/refactor/queuer/tests/main_test.py
index b683a4b1..76557d74 100644
--- a/refactor/queuer/tests/main_test.py
+++ b/refactor/queuer/tests/main_test.py
@@ -1,6 +1,6 @@
 import os
 import base64
-from refactor.queuer.app.core.queuer import Queuer
+from app.core.queuer import Queuer
 
 dirname = os.path.dirname(__file__)
 filename = os.path.join(dirname, './_test_assets/result')
@@ -17,8 +17,8 @@ def test_submit_endpoint(test_app, monkeypatch):
             "dispatch_id": MOCK_DISPATCH_ID
         }
 
-    monkeypatch.setattr("refactor.queuer.app.core.queuer.Queuer.publish", mock_publish)
-    monkeypatch.setattr("refactor.queuer.app.core.api.DataService.create_result", mock_create_result)
+    monkeypatch.setattr("app.core.queuer.Queuer.publish", mock_publish)
+    monkeypatch.setattr("app.core.api.DataService.create_result", mock_create_result)
 
     with open(filename, 'rb') as f:
         files = {